Class: OpenAI::Models::Beta::AgentSessionItem::FunctionCallOutput

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/agent_session_item.rb,
sig/openai/models/beta/agent_session_item.rbs

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, fields, hash, #hash, inherited, #inspect, inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, coerce_with_error, dump, #dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initializeObject



49
# File 'sig/openai/models/beta/agent_session_item.rbs', line 49

def initialize: (

Instance Attribute Details

#call_idString

The ID of the function call that produced this output.

Parameters:

  • value (String)

Returns:

  • (String)


65
# File 'lib/openai/models/beta/agent_session_item.rb', line 65

required :call_id, String

#errorString?

The error message, if the call failed.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


71
# File 'lib/openai/models/beta/agent_session_item.rb', line 71

required :error, String, nil?: true

#idString

The ID of the function call output item.

Parameters:

  • value (String)

Returns:

  • (String)


59
# File 'lib/openai/models/beta/agent_session_item.rb', line 59

required :id, String

#outputString, ...

The text or model-input content supplied as a function result.

Parameters:

  • value (OpenAI::Models::Beta::agent_function_call_output, nil)

Returns:



77
# File 'lib/openai/models/beta/agent_session_item.rb', line 77

required :output, union: -> { OpenAI::Beta::AgentFunctionCallOutput }, nil?: true

#statusSymbol, OpenAI::Models::Beta::AgentFunctionCallStatus

The status of the function call.

Parameters:

  • value (OpenAI::Models::Beta::agent_function_call_status)

Returns:



83
# File 'lib/openai/models/beta/agent_session_item.rb', line 83

required :status, enum: -> { OpenAI::Beta::AgentFunctionCallStatus }

#turn_idString

The ID of the turn that contains this item.

Parameters:

  • value (String)

Returns:

  • (String)


89
# File 'lib/openai/models/beta/agent_session_item.rb', line 89

required :turn_id, String

#typeSymbol, :function_call_output

The item type. Always function_call_output.

Parameters:

  • value (:function_call_output)

Returns:

  • (Symbol, :function_call_output)


95
# File 'lib/openai/models/beta/agent_session_item.rb', line 95

required :type, const: :function_call_output

Instance Method Details

#to_hash{

Returns:

  • ({)


59
# File 'sig/openai/models/beta/agent_session_item.rbs', line 59

def to_hash: -> {