Class: OpenAI::Models::Beta::BetaResponseInputItem::FunctionCallOutput
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::BetaResponseInputItem::FunctionCallOutput
- Defined in:
- lib/openai/models/beta/beta_response_input_item.rb,
sig/openai/models/beta/beta_response_input_item.rbs
Defined Under Namespace
Modules: Caller, Output, Status Classes: Agent
Instance Attribute Summary collapse
-
#agent ⇒ OpenAI::Beta::BetaResponseInputItem::FunctionCallOutput::Agent?
The agent that produced this item.
-
#call_id ⇒ String?
The unique ID of the function tool call generated by the model.
-
#caller_ ⇒ OpenAI::Models::Beta::BetaResponseInputItem::FunctionCallOutput::caller_?
The execution context that produced this tool call.
-
#id ⇒ String?
The unique ID of the function tool call output.
-
#name ⇒ String?
The name of the tool that produced the output.
-
#namespace ⇒ String?
The namespace of the tool that produced the output.
-
#output ⇒ OpenAI::Models::Beta::BetaResponseInputItem::FunctionCallOutput::output
Text, image, or file output of the function tool call.
-
#status ⇒ OpenAI::Models::Beta::BetaResponseInputItem::FunctionCallOutput::status?
The status of the item.
-
#type ⇒ :function_call_output
The type of the function tool call output.
Attributes inherited from Internal::Type::BaseModel
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(caller_id:, type: :program) ⇒ FunctionCallOutput
constructor
A new instance of FunctionCallOutput.
- #to_hash ⇒ { output: OpenAI::Models::Beta::BetaResponseInputItem::FunctionCallOutput::output, ?type: :function_call_output, ?id: String?, ?agent: OpenAI::Beta::BetaResponseInputItem::FunctionCallOutput::Agent?, ?call_id: String?, ?caller_: OpenAI::Models::Beta::BetaResponseInputItem::FunctionCallOutput::caller_?, ?name: String?, ?namespace: String?, ?status: OpenAI::Models::Beta::BetaResponseInputItem::FunctionCallOutput::status? }
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(caller_id:, type: :program) ⇒ FunctionCallOutput
Returns a new instance of FunctionCallOutput.
|
|
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 458
|
Instance Attribute Details
#agent ⇒ OpenAI::Beta::BetaResponseInputItem::FunctionCallOutput::Agent?
The agent that produced this item.
414 |
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 414 optional :agent, -> { OpenAI::Beta::BetaResponseInputItem::FunctionCallOutput::Agent }, nil?: true |
#call_id ⇒ String?
The unique ID of the function tool call generated by the model.
420 |
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 420 optional :call_id, String, nil?: true |
#caller_ ⇒ OpenAI::Models::Beta::BetaResponseInputItem::FunctionCallOutput::caller_?
The execution context that produced this tool call.
426 427 428 429 430 431 |
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 426 optional( :caller_, union: -> { OpenAI::Beta::BetaResponseInputItem::FunctionCallOutput::Caller }, api_name: :caller, nil?: true ) |
#id ⇒ String?
The unique ID of the function tool call output. Populated when this item is returned via API.
408 |
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 408 optional :id, String, nil?: true |
#name ⇒ String?
The name of the tool that produced the output.
437 |
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 437 optional :name, String, nil?: true |
#namespace ⇒ String?
The namespace of the tool that produced the output.
443 |
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 443 optional :namespace, String, nil?: true |
#output ⇒ OpenAI::Models::Beta::BetaResponseInputItem::FunctionCallOutput::output
Text, image, or file output of the function tool call.
395 |
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 395 required :output, union: -> { OpenAI::Beta::BetaResponseInputItem::FunctionCallOutput::Output } |
#status ⇒ OpenAI::Models::Beta::BetaResponseInputItem::FunctionCallOutput::status?
The status of the item. One of in_progress, completed, or incomplete.
Populated when items are returned via API.
450 451 452 453 454 455 456 |
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 450 optional( :status, enum: -> { OpenAI::Beta::BetaResponseInputItem::FunctionCallOutput::Status }, nil?: true ) |
#type ⇒ :function_call_output
The type of the function tool call output. Always function_call_output.
401 |
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 401 required :type, const: :function_call_output |
Class Method Details
.variants ⇒ Array(OpenAI::Models::Beta::BetaResponseInputItem::FunctionCallOutput::Caller::Direct, OpenAI::Models::Beta::BetaResponseInputItem::FunctionCallOutput::Caller::Program)
|
|
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 502
|
Instance Method Details
#to_hash ⇒ { output: OpenAI::Models::Beta::BetaResponseInputItem::FunctionCallOutput::output, ?type: :function_call_output, ?id: String?, ?agent: OpenAI::Beta::BetaResponseInputItem::FunctionCallOutput::Agent?, ?call_id: String?, ?caller_: OpenAI::Models::Beta::BetaResponseInputItem::FunctionCallOutput::caller_?, ?name: String?, ?namespace: String?, ?status: OpenAI::Models::Beta::BetaResponseInputItem::FunctionCallOutput::status? }
361 362 363 364 365 366 367 368 369 370 371 |
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 361
def to_hash: -> {
output: OpenAI::Models::Beta::BetaResponseInputItem::FunctionCallOutput::output,
?type: :function_call_output,
?id: String?,
?agent: OpenAI::Beta::BetaResponseInputItem::FunctionCallOutput::Agent?,
?call_id: String?,
?caller_: OpenAI::Models::Beta::BetaResponseInputItem::FunctionCallOutput::caller_?,
?name: String?,
?namespace: String?,
?status: OpenAI::Models::Beta::BetaResponseInputItem::FunctionCallOutput::status?
}
|