Class: OpenAI::Models::Beta::BetaResponseToolSearchOutputItemParam

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

Defined Under Namespace

Modules: Execution, Status, Tool 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:) ⇒ BetaResponseToolSearchOutputItemParam

Returns a new instance of BetaResponseToolSearchOutputItemParam.

Parameters:

  • tools —

    The loaded tool definitions returned by the tool search output.

  • id —

    The unique ID of this tool search output.

  • 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 output.

  • type —

    The item type. Always tool_search_output.

  • tools: (::Array[OpenAI::Models::Beta::BetaResponseToolSearchOutputItemParam::tool])
  • id: (String, nil)
  • agent: (OpenAI::Beta::BetaResponseToolSearchOutputItemParam::Agent, nil)
  • call_id: (String, nil)
  • execution: (OpenAI::Models::Beta::BetaResponseToolSearchOutputItemParam::execution)
  • status: (OpenAI::Models::Beta::BetaResponseToolSearchOutputItemParam::status, nil)
  • type: (:tool_search_output)


# File 'lib/openai/models/beta/beta_response_tool_search_output_item_param.rb', line 52

Instance Attribute Details

#agent ⇒ OpenAI::Beta::BetaResponseToolSearchOutputItemParam::Agent?

The agent that produced this item.

Returns:

  • (OpenAI::Beta::BetaResponseToolSearchOutputItemParam::Agent, nil)


32
# File 'lib/openai/models/beta/beta_response_tool_search_output_item_param.rb', line 32

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

#call_id ⇒ String?

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

Returns:

  • (String, nil)


38
# File 'lib/openai/models/beta/beta_response_tool_search_output_item_param.rb', line 38

optional :call_id, String, nil?: true

#execution ⇒ OpenAI::Models::Beta::BetaResponseToolSearchOutputItemParam::execution?

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

Returns:

  • (OpenAI::Models::Beta::BetaResponseToolSearchOutputItemParam::execution, nil)


44
# File 'lib/openai/models/beta/beta_response_tool_search_output_item_param.rb', line 44

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

#id ⇒ String?

The unique ID of this tool search output.

Returns:

  • (String, nil)


26
# File 'lib/openai/models/beta/beta_response_tool_search_output_item_param.rb', line 26

optional :id, String, nil?: true

#status ⇒ OpenAI::Models::Beta::BetaResponseToolSearchOutputItemParam::status?

The status of the tool search output.

Returns:

  • (OpenAI::Models::Beta::BetaResponseToolSearchOutputItemParam::status, nil)


50
# File 'lib/openai/models/beta/beta_response_tool_search_output_item_param.rb', line 50

optional :status, enum: -> { OpenAI::Beta::BetaResponseToolSearchOutputItemParam::Status }, nil?: true

#tools ⇒ ::Array[OpenAI::Models::Beta::BetaResponseToolSearchOutputItemParam::tool]

The loaded tool definitions returned by the tool search output.

Returns:

  • (::Array[OpenAI::Models::Beta::BetaResponseToolSearchOutputItemParam::tool])


11
12
13
14
# File 'lib/openai/models/beta/beta_response_tool_search_output_item_param.rb', line 11

required(
  :tools,
  -> { OpenAI::Internal::Type::ArrayOf[union: OpenAI::Beta::BetaResponseToolSearchOutputItemParam::Tool] }
)

#type ⇒ :tool_search_output

The item type. Always tool_search_output.

Returns:

  • (:tool_search_output)


20
# File 'lib/openai/models/beta/beta_response_tool_search_output_item_param.rb', line 20

required :type, const: :tool_search_output

Class Method Details

.values ⇒ Array<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/openai/models/beta/beta_response_tool_search_output_item_param.rb', line 1445

.variants ⇒ Array(OpenAI::Models::Beta::BetaFunctionTool, OpenAI::Models::Beta::BetaFileSearchTool, OpenAI::Models::Beta::BetaComputerTool, OpenAI::Models::Beta::BetaComputerUsePreviewTool, OpenAI::Models::Beta::BetaResponseToolSearchOutputItemParam::Tool::Mcp, OpenAI::Models::Beta::BetaResponseToolSearchOutputItemParam::Tool::CodeInterpreter, OpenAI::Models::Beta::BetaResponseToolSearchOutputItemParam::Tool::ProgrammaticToolCalling, OpenAI::Models::Beta::BetaResponseToolSearchOutputItemParam::Tool::ImageGeneration, OpenAI::Models::Beta::BetaResponseToolSearchOutputItemParam::Tool::LocalShell, OpenAI::Models::Beta::BetaFunctionShellTool, OpenAI::Models::Beta::BetaCustomTool, OpenAI::Models::Beta::BetaToolSearchOutputNamespaceTool, OpenAI::Models::Beta::BetaToolSearchTool, OpenAI::Models::Beta::BetaApplyPatchTool, OpenAI::Models::Beta::BetaWebSearchTool, OpenAI::Models::Beta::BetaWebSearchPreviewTool)



# File 'lib/openai/models/beta/beta_response_tool_search_output_item_param.rb', line 1417

Instance Method Details

#to_hash ⇒ { tools: ::Array[OpenAI::Models::Beta::BetaResponseToolSearchOutputItemParam::tool], ?type: :tool_search_output, ?id: String?, ?agent: OpenAI::Beta::BetaResponseToolSearchOutputItemParam::Agent?, ?call_id: String?, ?execution: OpenAI::Models::Beta::BetaResponseToolSearchOutputItemParam::execution, ?status: OpenAI::Models::Beta::BetaResponseToolSearchOutputItemParam::status? }

Returns:

  • ({ tools: ::Array[OpenAI::Models::Beta::BetaResponseToolSearchOutputItemParam::tool], ?type: :tool_search_output, ?id: String?, ?agent: OpenAI::Beta::BetaResponseToolSearchOutputItemParam::Agent?, ?call_id: String?, ?execution: OpenAI::Models::Beta::BetaResponseToolSearchOutputItemParam::execution, ?status: OpenAI::Models::Beta::BetaResponseToolSearchOutputItemParam::status? })


68
69
70
71
72
73
74
75
76
# File 'sig/openai/models/beta/beta_response_tool_search_output_item_param.rbs', line 68

def to_hash: -> {
  tools: ::Array[OpenAI::Models::Beta::BetaResponseToolSearchOutputItemParam::tool],
  ?type: :tool_search_output,
  ?id: String?,
  ?agent: OpenAI::Beta::BetaResponseToolSearchOutputItemParam::Agent?,
  ?call_id: String?,
  ?execution: OpenAI::Models::Beta::BetaResponseToolSearchOutputItemParam::execution,
  ?status: OpenAI::Models::Beta::BetaResponseToolSearchOutputItemParam::status?
}