Class: OpenAI::Models::Realtime::RealtimeMcpListTools

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

Defined Under Namespace

Classes: Tool

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, 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, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initializeObject



23
# File 'sig/openai/models/realtime/realtime_mcp_list_tools.rbs', line 23

def initialize: (

Instance Attribute Details

#idString?

The unique ID of the list.

Parameters:

  • (String)

Returns:

  • (String, nil)


29
# File 'lib/openai/models/realtime/realtime_mcp_list_tools.rb', line 29

optional :id, String

#server_labelString

The label of the MCP server.

Parameters:

  • value (String)

Returns:

  • (String)


11
# File 'lib/openai/models/realtime/realtime_mcp_list_tools.rb', line 11

required :server_label, String

#toolsArray<OpenAI::Models::Realtime::RealtimeMcpListTools::Tool>

The tools available on the server.

Parameters:

  • value (::Array[OpenAI::Realtime::RealtimeMcpListTools::Tool])

Returns:



17
# File 'lib/openai/models/realtime/realtime_mcp_list_tools.rb', line 17

required :tools, -> { OpenAI::Internal::Type::ArrayOf[OpenAI::Realtime::RealtimeMcpListTools::Tool] }

#typeSymbol, :mcp_list_tools

The type of the item. Always mcp_list_tools.

Parameters:

  • value (:mcp_list_tools)

Returns:

  • (Symbol, :mcp_list_tools)


23
# File 'lib/openai/models/realtime/realtime_mcp_list_tools.rb', line 23

required :type, const: :mcp_list_tools

Instance Method Details

#to_hash{

Returns:

  • ({)


30
# File 'sig/openai/models/realtime/realtime_mcp_list_tools.rbs', line 30

def to_hash: -> {