Class: OpenAI::Models::Beta::BetaResponseInputItem::MultiAgentCall

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/beta_response_input_item.rb,
sig/openai/models/beta/beta_response_input_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(action:, arguments:, call_id:, id: nil, agent: nil, type: :multi_agent_call) ⇒ MultiAgentCall

Returns a new instance of MultiAgentCall.

Parameters:

  • action —

    The multi-agent action that was executed.

  • arguments —

    The action arguments as a JSON string.

  • call_id —

    The unique ID linking this call to its output.

  • id (defaults to: nil) —

    The unique ID of this multi-agent call.

  • agent (defaults to: nil) —

    The agent that produced this item.

  • type (defaults to: :multi_agent_call) —

    The item type. Always multi_agent_call.

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


# File 'lib/openai/models/beta/beta_response_input_item.rb', line 746

Instance Attribute Details

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

The multi-agent action that was executed.

Returns:

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


714
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 714

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

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

The agent that produced this item.

Returns:

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


744
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 744

optional :agent, -> { OpenAI::Beta::BetaResponseInputItem::MultiAgentCall::Agent }, nil?: true

#arguments ⇒ String

The action arguments as a JSON string.

Returns:

  • (String)


720
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 720

required :arguments, String

#call_id ⇒ String

The unique ID linking this call to its output.

Returns:

  • (String)


726
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 726

required :call_id, String

#id ⇒ String?

The unique ID of this multi-agent call.

Returns:

  • (String, nil)


738
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 738

optional :id, String, nil?: true

#type ⇒ :multi_agent_call

The item type. Always multi_agent_call.

Returns:

  • (:multi_agent_call)


732
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 732

required :type, const: :multi_agent_call

Class Method Details

.values ⇒ Array<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/openai/models/beta/beta_response_input_item.rb', line 778

Instance Method Details

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

Returns:

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


609
610
611
612
613
614
615
616
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 609

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