OpenAI::MCPToolCall
Inherits JSON::Serializable < Reference < Object
An invocation of a tool on an MCP server.
Constructors
new(pull : JSON::PullParser)
Sourcenew(type_value : MCPToolCallType = MCPToolCallType::McpCall, id : String = "", server_label : String = "", name : String = "", arguments : String = "", output : MCPToolCallOutput | Nil = nil, error : MCPToolCallError | Nil = nil, status : MCPToolCallStatus | Nil = nil, approval_request_id : MCPToolCallApprovalRequestId | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
approval_request_id
Sourceapproval_request_id=(approval_request_id : MCPToolCallApprovalRequestId | Nil)
Sourceerror
Sourceerror=(error : MCPToolCallError | Nil)
Sourceoutput
Sourceoutput=(output : MCPToolCallOutput | Nil)
Sourcestatus
The status of the tool call. One of in_progress, completed, incomplete, calling, or failed.
status=(status : MCPToolCallStatus | Nil)
The status of the tool call. One of in_progress, completed, incomplete, calling, or failed.