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

Attributes inherited from Internal::Type::BaseModel

#last_response

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_with_error, 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

#initialize ⇒ Object

Parameters:

  • server_label —

    The label of the MCP server.

  • tools —

    The tools available on the server.

  • id —

    The unique ID of the list.

  • type —

    The type of the item. Always mcp_list_tools.



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

def initialize: (

Instance Attribute Details

#id ⇒ String?

The unique ID of the list.

Returns:

  • (String, nil)


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

optional :id, String

#server_label ⇒ String

The label of the MCP server.

Returns:

  • (String)


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

required :server_label, String

#tools ⇒ ::Array[OpenAI::Realtime::RealtimeMcpListTools::Tool]

The tools available on the server.

Returns:

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


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

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

#type ⇒ :mcp_list_tools

The type of the item. Always mcp_list_tools.

Returns:

  • (: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:

  • ({)


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

def to_hash: -> {