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