Class: OpenAI::Models::Responses::ResponseInputItem::ToolSearchCall
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Responses::ResponseInputItem::ToolSearchCall
- Defined in:
- lib/openai/models/responses/response_input_item.rb,
sig/openai/models/responses/response_input_item.rbs
Defined Under Namespace
Instance Attribute Summary collapse
-
#arguments ⇒ top
The arguments supplied to the tool search call.
-
#call_id ⇒ String?
The unique ID of the tool search call generated by the model.
-
#execution ⇒ OpenAI::Models::Responses::ResponseInputItem::ToolSearchCall::execution?
Whether tool search was executed by the server or by the client.
-
#id ⇒ String?
The unique ID of this tool search call.
-
#status ⇒ OpenAI::Models::Responses::ResponseInputItem::ToolSearchCall::status?
The status of the tool search call.
-
#type ⇒ :tool_search_call
The item type.
Attributes inherited from Internal::Type::BaseModel
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(arguments:, id: nil, call_id: nil, execution: nil, status: nil, type: :tool_search_call) ⇒ ToolSearchCall
constructor
A new instance of ToolSearchCall.
- #to_hash ⇒ { arguments: top, ?type: :tool_search_call, ?id: String?, ?call_id: String?, ?execution: OpenAI::Models::Responses::ResponseInputItem::ToolSearchCall::execution, ?status: OpenAI::Models::Responses::ResponseInputItem::ToolSearchCall::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(arguments:, id: nil, call_id: nil, execution: nil, status: nil, type: :tool_search_call) ⇒ ToolSearchCall
Returns a new instance of ToolSearchCall.
|
|
# File 'lib/openai/models/responses/response_input_item.rb', line 546
|
Instance Attribute Details
#arguments ⇒ top
The arguments supplied to the tool search call.
508 |
# File 'lib/openai/models/responses/response_input_item.rb', line 508 required :arguments, OpenAI::Internal::Type::Unknown |
#call_id ⇒ String?
The unique ID of the tool search call generated by the model.
526 |
# File 'lib/openai/models/responses/response_input_item.rb', line 526 optional :call_id, String, nil?: true |
#execution ⇒ OpenAI::Models::Responses::ResponseInputItem::ToolSearchCall::execution?
Whether tool search was executed by the server or by the client.
532 |
# File 'lib/openai/models/responses/response_input_item.rb', line 532 optional :execution, enum: -> { OpenAI::Responses::ResponseInputItem::ToolSearchCall::Execution } |
#id ⇒ String?
The unique ID of this tool search call.
520 |
# File 'lib/openai/models/responses/response_input_item.rb', line 520 optional :id, String, nil?: true |
#status ⇒ OpenAI::Models::Responses::ResponseInputItem::ToolSearchCall::status?
The status of the tool search call.
538 539 540 541 542 543 544 |
# File 'lib/openai/models/responses/response_input_item.rb', line 538 optional( :status, enum: -> { OpenAI::Responses::ResponseInputItem::ToolSearchCall::Status }, nil?: true ) |
#type ⇒ :tool_search_call
The item type. Always tool_search_call.
514 |
# File 'lib/openai/models/responses/response_input_item.rb', line 514 required :type, const: :tool_search_call |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/openai/models/responses/response_input_item.rb', line 574
|
Instance Method Details
#to_hash ⇒ { arguments: top, ?type: :tool_search_call, ?id: String?, ?call_id: String?, ?execution: OpenAI::Models::Responses::ResponseInputItem::ToolSearchCall::execution, ?status: OpenAI::Models::Responses::ResponseInputItem::ToolSearchCall::status? }
437 438 439 440 441 442 443 444 |
# File 'sig/openai/models/responses/response_input_item.rbs', line 437
def to_hash: -> {
arguments: top,
?type: :tool_search_call,
?id: String?,
?call_id: String?,
?execution: OpenAI::Models::Responses::ResponseInputItem::ToolSearchCall::execution,
?status: OpenAI::Models::Responses::ResponseInputItem::ToolSearchCall::status?
}
|