Class: OpenAI::Models::Realtime::RealtimeMcpToolCall
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Realtime::RealtimeMcpToolCall
- Defined in:
- lib/openai/models/realtime/realtime_mcp_tool_call.rb
Defined Under Namespace
Modules: Error
Instance Attribute Summary collapse
-
#approval_request_id ⇒ String?
The ID of an associated approval request, if any.
-
#arguments ⇒ String
A JSON string of the arguments passed to the tool.
-
#error ⇒ OpenAI::Models::Realtime::RealtimeMcpProtocolError, ...
The error from the tool call, if any.
-
#id ⇒ String
The unique ID of the tool call.
-
#name ⇒ String
The name of the tool that was run.
-
#output ⇒ String?
The output from the tool call.
-
#server_label ⇒ String
The label of the MCP server running the tool.
-
#type ⇒ Symbol, :mcp_call
The type of the item.
Instance Method Summary collapse
-
#initialize(id:, arguments:, name:, server_label:, approval_request_id: nil, error: nil, output: nil, type: :mcp_call) ⇒ Object
constructor
A Realtime item representing an invocation of a tool on an MCP server.
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
#initialize(id:, arguments:, name:, server_label:, approval_request_id: nil, error: nil, output: nil, type: :mcp_call) ⇒ Object
A Realtime item representing an invocation of a tool on an MCP server.
|
|
# File 'lib/openai/models/realtime/realtime_mcp_tool_call.rb', line 55
|
Instance Attribute Details
#approval_request_id ⇒ String?
The ID of an associated approval request, if any.
41 |
# File 'lib/openai/models/realtime/realtime_mcp_tool_call.rb', line 41 optional :approval_request_id, String, nil?: true |
#arguments ⇒ String
A JSON string of the arguments passed to the tool.
17 |
# File 'lib/openai/models/realtime/realtime_mcp_tool_call.rb', line 17 required :arguments, String |
#error ⇒ OpenAI::Models::Realtime::RealtimeMcpProtocolError, ...
The error from the tool call, if any.
47 |
# File 'lib/openai/models/realtime/realtime_mcp_tool_call.rb', line 47 optional :error, union: -> { OpenAI::Realtime::RealtimeMcpToolCall::Error }, nil?: true |
#id ⇒ String
The unique ID of the tool call.
11 |
# File 'lib/openai/models/realtime/realtime_mcp_tool_call.rb', line 11 required :id, String |
#name ⇒ String
The name of the tool that was run.
23 |
# File 'lib/openai/models/realtime/realtime_mcp_tool_call.rb', line 23 required :name, String |
#output ⇒ String?
The output from the tool call.
53 |
# File 'lib/openai/models/realtime/realtime_mcp_tool_call.rb', line 53 optional :output, String, nil?: true |
#server_label ⇒ String
The label of the MCP server running the tool.
29 |
# File 'lib/openai/models/realtime/realtime_mcp_tool_call.rb', line 29 required :server_label, String |
#type ⇒ Symbol, :mcp_call
The type of the item. Always ‘mcp_call`.
35 |
# File 'lib/openai/models/realtime/realtime_mcp_tool_call.rb', line 35 required :type, const: :mcp_call |