struct ACP::Protocol::ToolCallStatusUpdate

Overview

Update on the status or results of an existing tool call. All fields except toolCallId are optional — only changed fields need to be included. See: https://agentclientprotocol.com/protocol/tool-calls#updating

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(pull : JSON::PullParser) #

Update on the status or results of an existing tool call. All fields except toolCallId are optional — only changed fields need to be included. See: https://agentclientprotocol.com/protocol/tool-calls#updating


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

[View source]

Instance Method Detail

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

Replace the content collection.


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

Replace the content collection.


[View source]
def kind : String | Nil #

Update the tool kind.


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

Update the tool kind.


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

Replace the locations collection.


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

Replace the locations collection.


[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 #

Update the raw input.


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

Update the raw input.


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

Update the raw output.


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

Update the raw output.


[View source]
def status : String | Nil #

Update the execution status.


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

Update the execution status.


[View source]
def title : String | Nil #

Update the human-readable title.


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

Update the human-readable title.


[View source]
def tool_call_id : String #

The ID of the tool call being updated (required).


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

The ID of the tool call being updated (required).


[View source]