Class: OpenAI::Models::Beta::BetaResponseInputItem::MultiAgentCall
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::BetaResponseInputItem::MultiAgentCall
- 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
-
#action ⇒ OpenAI::Models::Beta::BetaResponseInputItem::MultiAgentCall::action
The multi-agent action that was executed.
-
#agent ⇒ OpenAI::Beta::BetaResponseInputItem::MultiAgentCall::Agent?
The agent that produced this item.
-
#arguments ⇒ String
The action arguments as a JSON string.
-
#call_id ⇒ String
The unique ID linking this call to its output.
-
#id ⇒ String?
The unique ID of this multi-agent call.
-
#type ⇒ :multi_agent_call
The item type.
Attributes inherited from Internal::Type::BaseModel
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(action:, arguments:, call_id:, id: nil, agent: nil, type: :multi_agent_call) ⇒ MultiAgentCall
constructor
A new instance of MultiAgentCall.
- #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? }
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.
|
|
# 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.
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.
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.
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.
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.
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.
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>
|
|
# 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? }
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?
}
|