Class: OpenAI::Models::Responses::ResponseCustomToolCallItem
- Inherits:
-
ResponseCustomToolCall
- Object
- Internal::Type::BaseModel
- ResponseCustomToolCall
- OpenAI::Models::Responses::ResponseCustomToolCallItem
- Defined in:
- lib/openai/models/responses/response_custom_tool_call_item.rb,
sig/openai/models/responses/response_custom_tool_call_item.rbs
Defined Under Namespace
Modules: Status
Instance Attribute Summary collapse
-
#created_by ⇒ String?
The identifier of the actor that created the item.
-
#id ⇒ String
The unique ID of the custom tool call item.
-
#status ⇒ OpenAI::Models::Responses::ResponseCustomToolCallItem::status
The status of the item.
Attributes inherited from ResponseCustomToolCall
#async, #call_id, #caller_, #input, #name, #namespace, #type
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(call_id:, input:, name:, id:, status:, async: nil, caller_: nil, namespace: nil, created_by: nil, type: :custom_tool_call) ⇒ ResponseCustomToolCallItem
constructor
A new instance of ResponseCustomToolCallItem.
- #to_hash ⇒ { call_id: String, input: String, name: String, id: String, status: OpenAI::Models::Responses::ResponseCustomToolCallItem::status, ?type: :custom_tool_call, ?async: bool, ?caller_: OpenAI::Models::Responses::ResponseCustomToolCall::caller_?, ?namespace: String, ?created_by: String }
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(call_id:, input:, name:, id:, status:, async: nil, caller_: nil, namespace: nil, created_by: nil, type: :custom_tool_call) ⇒ ResponseCustomToolCallItem
Returns a new instance of ResponseCustomToolCallItem.
|
|
# File 'lib/openai/models/responses/response_custom_tool_call_item.rb', line 26
|
Instance Attribute Details
#created_by ⇒ String?
The identifier of the actor that created the item.
24 |
# File 'lib/openai/models/responses/response_custom_tool_call_item.rb', line 24 optional :created_by, String |
#id ⇒ String
The unique ID of the custom tool call item.
11 |
# File 'lib/openai/models/responses/response_custom_tool_call_item.rb', line 11 required :id, String |
#status ⇒ OpenAI::Models::Responses::ResponseCustomToolCallItem::status
The status of the item. One of in_progress, completed, or incomplete.
Populated when items are returned via API.
18 |
# File 'lib/openai/models/responses/response_custom_tool_call_item.rb', line 18 required :status, enum: -> { OpenAI::Responses::ResponseCustomToolCallItem::Status } |
Instance Method Details
#to_hash ⇒ { call_id: String, input: String, name: String, id: String, status: OpenAI::Models::Responses::ResponseCustomToolCallItem::status, ?type: :custom_tool_call, ?async: bool, ?caller_: OpenAI::Models::Responses::ResponseCustomToolCall::caller_?, ?namespace: String, ?created_by: String }
75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'sig/openai/models/responses/response_custom_tool_call_item.rbs', line 75
def to_hash: -> {
call_id: String,
input: String,
name: String,
id: String,
status: OpenAI::Models::Responses::ResponseCustomToolCallItem::status,
?type: :custom_tool_call,
?async: bool,
?caller_: OpenAI::Models::Responses::ResponseCustomToolCall::caller_?,
?namespace: String,
?created_by: String
}
|