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

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

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_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, 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) ⇒ MultiAgentCall

Returns a new instance of MultiAgentCall.

Parameters:

  • id —

    The unique ID of the multi-agent call item.

  • action —

    The multi-agent action to execute.

  • arguments —

    The JSON string of arguments generated for the action.

  • call_id —

    The unique ID linking this call to its output.

  • agent (defaults to: nil) —

    The agent that produced this item.

  • type (defaults to: :multi_agent_call) —

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

  • id: (String)
  • action: (OpenAI::Models::Beta::BetaResponseOutputItem::MultiAgentCall::action)
  • arguments: (String)
  • call_id: (String)
  • agent: (OpenAI::Beta::BetaResponseOutputItem::MultiAgentCall::Agent) (defaults to: nil)
  • type: (:multi_agent_call) (defaults to: :multi_agent_call)


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

Instance Attribute Details

#action ⇒ OpenAI::Models::Beta::BetaResponseOutputItem::MultiAgentCall::action

The multi-agent action to execute.

Returns:

  • (OpenAI::Models::Beta::BetaResponseOutputItem::MultiAgentCall::action)


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

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

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

The agent that produced this item.

Returns:

  • (OpenAI::Beta::BetaResponseOutputItem::MultiAgentCall::Agent, nil)


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

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

#arguments ⇒ String

The JSON string of arguments generated for the action.

Returns:

  • (String)


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

required :arguments, String

#call_id ⇒ String

The unique ID linking this call to its output.

Returns:

  • (String)


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

required :call_id, String

#id ⇒ String

The unique ID of the multi-agent call item.

Returns:

  • (String)


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

required :id, String

#type ⇒ :multi_agent_call

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

Returns:

  • (:multi_agent_call)


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

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 506

Instance Method Details

#to_hash ⇒ { id: String, action: OpenAI::Models::Beta::BetaResponseOutputItem::MultiAgentCall::action, arguments: String, call_id: String, ?type: :multi_agent_call, ?agent: OpenAI::Beta::BetaResponseOutputItem::MultiAgentCall::Agent }

Returns:

  • ({ id: String, action: OpenAI::Models::Beta::BetaResponseOutputItem::MultiAgentCall::action, arguments: String, call_id: String, ?type: :multi_agent_call, ?agent: OpenAI::Beta::BetaResponseOutputItem::MultiAgentCall::Agent })


390
391
392
393
394
395
396
397
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 390

def to_hash: -> {
  id: String,
  action: OpenAI::Models::Beta::BetaResponseOutputItem::MultiAgentCall::action,
  arguments: String,
  call_id: String,
  ?type: :multi_agent_call,
  ?agent: OpenAI::Beta::BetaResponseOutputItem::MultiAgentCall::Agent
}