struct ACP::Protocol::ToolCallEndUpdate

Overview

Signals that a tool invocation has completed.

NOTE Not part of the ACP spec. Use tool_call_update with status "completed" or "failed" instead.

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

Signals that a tool invocation has completed.

NOTE Not part of the ACP spec. Use tool_call_update with status "completed" or "failed" instead.


[View source]
def self.new(tool_call_id : String, status : String = "completed", result : String | Nil = nil, error : String | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil) #

[View source]

Instance Method Detail

def error : String | Nil #

Optional error message if the tool call failed.


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

Optional error message if the tool call failed.


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

Optional result content from the tool invocation.


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

Optional result content from the tool invocation.


[View source]
def status : String #

Final status of the tool call (e.g., "completed", "failed", "cancelled").


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

Final status of the tool call (e.g., "completed", "failed", "cancelled").


[View source]
def tool_call_id : String #

The tool call ID this end event corresponds to.


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

The tool call ID this end event corresponds to.


[View source]