Class: OpenAI::Models::Responses::ResponseInputItem::FunctionCallOutput
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Responses::ResponseInputItem::FunctionCallOutput
- Defined in:
- lib/openai/models/responses/response_input_item.rb,
sig/openai/models/responses/response_input_item.rbs
Defined Under Namespace
Modules: Caller, Output, Status
Instance Attribute Summary collapse
-
#call_id ⇒ String?
The unique ID of the function tool call generated by the model.
-
#caller_ ⇒ OpenAI::Models::Responses::ResponseInputItem::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::Responses::ResponseInputItem::FunctionCallOutput::output
Text, image, or file output of the function tool call.
-
#status ⇒ OpenAI::Models::Responses::ResponseInputItem::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::Responses::ResponseInputItem::FunctionCallOutput::output, ?type: :function_call_output, ?id: String?, ?call_id: String?, ?caller_: OpenAI::Models::Responses::ResponseInputItem::FunctionCallOutput::caller_?, ?name: String?, ?namespace: String?, ?status: OpenAI::Models::Responses::ResponseInputItem::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/responses/response_input_item.rb', line 393
|
Instance Attribute Details
#call_id ⇒ String?
The unique ID of the function tool call generated by the model.
357 |
# File 'lib/openai/models/responses/response_input_item.rb', line 357 optional :call_id, String, nil?: true |
#caller_ ⇒ OpenAI::Models::Responses::ResponseInputItem::FunctionCallOutput::caller_?
The execution context that produced this tool call.
363 364 365 366 367 368 |
# File 'lib/openai/models/responses/response_input_item.rb', line 363 optional( :caller_, union: -> { OpenAI::Responses::ResponseInputItem::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.
351 |
# File 'lib/openai/models/responses/response_input_item.rb', line 351 optional :id, String, nil?: true |
#name ⇒ String?
The name of the tool that produced the output.
374 |
# File 'lib/openai/models/responses/response_input_item.rb', line 374 optional :name, String, nil?: true |
#namespace ⇒ String?
The namespace of the tool that produced the output.
380 |
# File 'lib/openai/models/responses/response_input_item.rb', line 380 optional :namespace, String, nil?: true |
#output ⇒ OpenAI::Models::Responses::ResponseInputItem::FunctionCallOutput::output
Text, image, or file output of the function tool call.
338 |
# File 'lib/openai/models/responses/response_input_item.rb', line 338 required :output, union: -> { OpenAI::Responses::ResponseInputItem::FunctionCallOutput::Output } |
#status ⇒ OpenAI::Models::Responses::ResponseInputItem::FunctionCallOutput::status?
The status of the item. One of in_progress, completed, or incomplete.
Populated when items are returned via API.
387 388 389 390 391 |
# File 'lib/openai/models/responses/response_input_item.rb', line 387 optional( :status, enum: -> { OpenAI::Responses::ResponseInputItem::FunctionCallOutput::Status }, nil?: true ) |
#type ⇒ :function_call_output
The type of the function tool call output. Always function_call_output.
344 |
# File 'lib/openai/models/responses/response_input_item.rb', line 344 required :type, const: :function_call_output |
Class Method Details
.variants ⇒ Array(OpenAI::Models::Responses::ResponseInputItem::FunctionCallOutput::Caller::Direct, OpenAI::Models::Responses::ResponseInputItem::FunctionCallOutput::Caller::Program)
|
|
# File 'lib/openai/models/responses/response_input_item.rb', line 434
|
Instance Method Details
#to_hash ⇒ { output: OpenAI::Models::Responses::ResponseInputItem::FunctionCallOutput::output, ?type: :function_call_output, ?id: String?, ?call_id: String?, ?caller_: OpenAI::Models::Responses::ResponseInputItem::FunctionCallOutput::caller_?, ?name: String?, ?namespace: String?, ?status: OpenAI::Models::Responses::ResponseInputItem::FunctionCallOutput::status? }
307 308 309 310 311 312 313 314 315 316 |
# File 'sig/openai/models/responses/response_input_item.rbs', line 307
def to_hash: -> {
output: OpenAI::Models::Responses::ResponseInputItem::FunctionCallOutput::output,
?type: :function_call_output,
?id: String?,
?call_id: String?,
?caller_: OpenAI::Models::Responses::ResponseInputItem::FunctionCallOutput::caller_?,
?name: String?,
?namespace: String?,
?status: OpenAI::Models::Responses::ResponseInputItem::FunctionCallOutput::status?
}
|