Class: OpenAI::Models::Beta::BetaResponseInputItem::ToolSearchCall

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/beta_response_input_item.rb,
sig/openai/models/beta/beta_response_input_item.rbs

Defined Under Namespace

Modules: Execution, Status Classes: Agent

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Class Method Summary collapse

Instance Method Summary collapse

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(agent_name:) ⇒ ToolSearchCall

Returns a new instance of ToolSearchCall.

Parameters:

  • arguments —

    The arguments supplied to the tool search call.

  • id —

    The unique ID of this tool search call.

  • agent —

    The agent that produced this item.

  • call_id —

    The unique ID of the tool search call generated by the model.

  • execution —

    Whether tool search was executed by the server or by the client.

  • status —

    The status of the tool search call.

  • type —

    The item type. Always tool_search_call.

  • arguments: (top)
  • id: (String, nil)
  • agent: (OpenAI::Beta::BetaResponseInputItem::ToolSearchCall::Agent, nil)
  • call_id: (String, nil)
  • execution: (OpenAI::Models::Beta::BetaResponseInputItem::ToolSearchCall::execution)
  • status: (OpenAI::Models::Beta::BetaResponseInputItem::ToolSearchCall::status, nil)
  • type: (:tool_search_call)


# File 'lib/openai/models/beta/beta_response_input_item.rb', line 1145

Instance Attribute Details

#agent ⇒ OpenAI::Beta::BetaResponseInputItem::ToolSearchCall::Agent?

The agent that produced this item.

Returns:

  • (OpenAI::Beta::BetaResponseInputItem::ToolSearchCall::Agent, nil)


1119
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 1119

optional :agent, -> { OpenAI::Beta::BetaResponseInputItem::ToolSearchCall::Agent }, nil?: true

#arguments ⇒ top

The arguments supplied to the tool search call.

Returns:

  • (top)


1101
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 1101

required :arguments, OpenAI::Internal::Type::Unknown

#call_id ⇒ String?

The unique ID of the tool search call generated by the model.

Returns:

  • (String, nil)


1125
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 1125

optional :call_id, String, nil?: true

#execution ⇒ OpenAI::Models::Beta::BetaResponseInputItem::ToolSearchCall::execution?

Whether tool search was executed by the server or by the client.

Returns:

  • (OpenAI::Models::Beta::BetaResponseInputItem::ToolSearchCall::execution, nil)


1131
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 1131

optional :execution, enum: -> { OpenAI::Beta::BetaResponseInputItem::ToolSearchCall::Execution }

#id ⇒ String?

The unique ID of this tool search call.

Returns:

  • (String, nil)


1113
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 1113

optional :id, String, nil?: true

#status ⇒ OpenAI::Models::Beta::BetaResponseInputItem::ToolSearchCall::status?

The status of the tool search call.

Returns:

  • (OpenAI::Models::Beta::BetaResponseInputItem::ToolSearchCall::status, nil)


1137
1138
1139
1140
1141
1142
1143
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 1137

optional(
  :status,
  enum: -> {
    OpenAI::Beta::BetaResponseInputItem::ToolSearchCall::Status
  },
  nil?: true
)

#type ⇒ :tool_search_call

The item type. Always tool_search_call.

Returns:

  • (:tool_search_call)


1107
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 1107

required :type, const: :tool_search_call

Class Method Details

.values ⇒ Array<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/openai/models/beta/beta_response_input_item.rb', line 1191

Instance Method Details

#to_hash ⇒ { arguments: top, ?type: :tool_search_call, ?id: String?, ?agent: OpenAI::Beta::BetaResponseInputItem::ToolSearchCall::Agent?, ?call_id: String?, ?execution: OpenAI::Models::Beta::BetaResponseInputItem::ToolSearchCall::execution, ?status: OpenAI::Models::Beta::BetaResponseInputItem::ToolSearchCall::status? }

Returns:

  • ({ arguments: top, ?type: :tool_search_call, ?id: String?, ?agent: OpenAI::Beta::BetaResponseInputItem::ToolSearchCall::Agent?, ?call_id: String?, ?execution: OpenAI::Models::Beta::BetaResponseInputItem::ToolSearchCall::execution, ?status: OpenAI::Models::Beta::BetaResponseInputItem::ToolSearchCall::status? })


1017
1018
1019
1020
1021
1022
1023
1024
1025
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 1017

def to_hash: -> {
  arguments: top,
  ?type: :tool_search_call,
  ?id: String?,
  ?agent: OpenAI::Beta::BetaResponseInputItem::ToolSearchCall::Agent?,
  ?call_id: String?,
  ?execution: OpenAI::Models::Beta::BetaResponseInputItem::ToolSearchCall::execution,
  ?status: OpenAI::Models::Beta::BetaResponseInputItem::ToolSearchCall::status?
}