struct ACP::Protocol::ToolCallUpdate

Overview

Notification that a new tool call has been initiated by the language model. See: https://agentclientprotocol.com/protocol/tool-calls#creating

Included Modules

Defined in:

acp/protocol/updates.cr

Constructors

Instance Method Summary

Instance methods inherited from struct ACP::Protocol::SessionUpdate

session_update : String session_update, session_update=(session_update : String) session_update=, type : String type

Constructor methods inherited from struct ACP::Protocol::SessionUpdate

new(pull : JSON::PullParser) new

Constructor Detail

def self.new(tool_call_id : String, title : String, kind : String | Nil = nil, status : String | Nil = "pending", content : Array(JSON::Any) | Nil = nil, locations : Array(JSON::Any) | Nil = nil, raw_input : JSON::Any | Nil = nil, raw_output : JSON::Any | Nil = nil, tool_name : String | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

Notification that a new tool call has been initiated by the language model. See: https://agentclientprotocol.com/protocol/tool-calls#creating


[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 kind : String | Nil #

The category of tool being invoked. Helps clients choose icons. Values: read, edit, delete, move, search, execute, think, fetch, switch_mode, other


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

The category of tool being invoked. Helps clients choose icons. Values: read, edit, delete, move, search, execute, think, fetch, switch_mode, other


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

File locations affected by this tool call.


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

File locations affected by this tool call.


[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 raw_input : JSON::Any | Nil #

Raw input parameters sent to the tool.


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

Raw input parameters sent to the tool.


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

Raw output returned by the tool.


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

Raw output returned by the tool.


[View source]
def status : String | Nil #

Current execution status: pending, in_progress, completed, failed.


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

Current execution status: pending, in_progress, completed, failed.


[View source]
def title : String #

Human-readable title describing what the tool is doing (required).


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

Human-readable title describing what the tool is doing (required).


[View source]
def tool_call_id : String #

Unique identifier for this tool call within the session (required).


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

Unique identifier for this tool call within the session (required).


[View source]
def tool_name : String | Nil #

The name of the tool being invoked (non-standard, backward compat).


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

The name of the tool being invoked (non-standard, backward compat).


[View source]