struct ACP::Protocol::ToolCallInfo

Overview

Describes the tool call that triggered the permission request. This is a ToolCallUpdate-like object. See: https://agentclientprotocol.com/protocol/tool-calls#requesting-permission

Included Modules

Defined in:

acp/protocol/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(tool_call_id : String | Nil = nil, title : String | Nil = nil, kind : String | Nil = nil, status : String | Nil = nil, content : Array(JSON::Any) | Nil = nil, tool_name : String | Nil = nil, input : JSON::Any | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil) #

[View source]

Instance Method Detail

def content : Array(JSON::Any) | Nil #

Content produced by the tool call.


[View source]
def content=(content : Array(JSON::Any) | Nil) #

Content produced by the tool call.


[View source]
def input : JSON::Any | Nil #

The input/arguments to the tool call.


[View source]
def input=(input : JSON::Any | Nil) #

The input/arguments to the tool call.


[View source]
def kind : String | Nil #

The category of tool being invoked.


[View source]
def kind=(kind : String | Nil) #

The category of tool being invoked.


[View source]
def meta : Hash(String, JSON::Any) | Nil #

Extension metadata.


[View source]
def meta=(meta : Hash(String, JSON::Any) | Nil) #

Extension metadata.


[View source]
def status : String | Nil #

Current execution status.


[View source]
def status=(status : String | Nil) #

Current execution status.


[View source]
def title : String | Nil #

Human-readable title or summary of the tool call.


[View source]
def title=(title : String | Nil) #

Human-readable title or summary of the tool call.


[View source]
def tool_call_id : String | Nil #

The unique ID of the tool call.


[View source]
def tool_call_id=(tool_call_id : String | Nil) #

The unique ID of the tool call.


[View source]
def tool_name : String | Nil #

The name of the tool being invoked (backward compat).


[View source]
def tool_name=(tool_name : String | Nil) #

The name of the tool being invoked (backward compat).


[View source]