Class: OpenAI::Models::Beta::BetaResponseOutputItem::MultiAgentCall

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/beta_response_output_item.rb

Defined Under Namespace

Modules: Action Classes: Agent

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Class Method Summary collapse

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

#initialize(id:, action:, arguments:, call_id:, agent: nil, type: :multi_agent_call) ⇒ Object

Parameters:



# File 'lib/openai/models/beta/beta_response_output_item.rb', line 447

Instance Attribute Details

#action ⇒ Symbol, OpenAI::Models::Beta::BetaResponseOutputItem::MultiAgentCall::Action

The multi-agent action to execute.



421
# File 'lib/openai/models/beta/beta_response_output_item.rb', line 421

required :action, enum: -> { OpenAI::Beta::BetaResponseOutputItem::MultiAgentCall::Action }

#agent ⇒ OpenAI::Models::Beta::BetaResponseOutputItem::MultiAgentCall::Agent?

The agent that produced this item.



445
# File 'lib/openai/models/beta/beta_response_output_item.rb', line 445

optional :agent, -> { OpenAI::Beta::BetaResponseOutputItem::MultiAgentCall::Agent }

#arguments ⇒ String

The JSON string of arguments generated for the action.

Returns:

  • (String)


427
# File 'lib/openai/models/beta/beta_response_output_item.rb', line 427

required :arguments, String

#call_id ⇒ String

The unique ID linking this call to its output.

Returns:

  • (String)


433
# File 'lib/openai/models/beta/beta_response_output_item.rb', line 433

required :call_id, String

#id ⇒ String

The unique ID of the multi-agent call item.

Returns:

  • (String)


415
# File 'lib/openai/models/beta/beta_response_output_item.rb', line 415

required :id, String

#type ⇒ Symbol, :multi_agent_call

The type of the multi-agent call. Always multi_agent_call.

Returns:

  • (Symbol, :multi_agent_call)


439
# File 'lib/openai/models/beta/beta_response_output_item.rb', line 439

required :type, const: :multi_agent_call

Class Method Details

.values ⇒ Array<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/openai/models/beta/beta_response_output_item.rb', line 479