Class: OpenAI::Models::Realtime::RealtimeMcpListTools
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Realtime::RealtimeMcpListTools
- 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
-
#id ⇒ String?
The unique ID of the list.
-
#server_label ⇒ String
The label of the MCP server.
-
#tools ⇒ ::Array[OpenAI::Realtime::RealtimeMcpListTools::Tool]
The tools available on the server.
-
#type ⇒ :mcp_list_tools
The type of the item.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize ⇒ RealtimeMcpListTools
constructor
A new instance of RealtimeMcpListTools.
- #to_hash ⇒ { server_label: String, tools: ::Array[OpenAI::Realtime::RealtimeMcpListTools::Tool], ?type: :mcp_list_tools, ?id: String }
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 ⇒ RealtimeMcpListTools
Returns a new instance of RealtimeMcpListTools.
36 37 38 39 40 41 |
# File 'sig/openai/models/realtime/realtime_mcp_list_tools.rbs', line 36
def initialize: (
server_label: String,
tools: ::Array[OpenAI::Realtime::RealtimeMcpListTools::Tool],
?id: String,
?type: :mcp_list_tools
) -> void
|
Instance Attribute Details
#id ⇒ String?
The unique ID of the list.
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.
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.
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.
23 |
# File 'lib/openai/models/realtime/realtime_mcp_list_tools.rb', line 23 required :type, const: :mcp_list_tools |
Instance Method Details
#to_hash ⇒ { server_label: String, tools: ::Array[OpenAI::Realtime::RealtimeMcpListTools::Tool], ?type: :mcp_list_tools, ?id: String }
43 44 45 46 47 48 |
# File 'sig/openai/models/realtime/realtime_mcp_list_tools.rbs', line 43
def to_hash: -> {
server_label: String,
tools: ::Array[OpenAI::Realtime::RealtimeMcpListTools::Tool],
?type: :mcp_list_tools,
?id: String
}
|