struct ACP::Protocol::ToolCallChunkUpdate

Overview

A streamed chunk of tool call input or output.

NOTE Not part of the ACP spec. Use tool_call_update 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) #

A streamed chunk of tool call input or output.

NOTE Not part of the ACP spec. Use tool_call_update instead.


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

[View source]

Instance Method Detail

def content : String | Nil #

The content of this tool call chunk.


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

The content of this tool call chunk.


[View source]
def kind : String | Nil #

Optional field indicating whether this is "input" or "output".


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

Optional field indicating whether this is "input" or "output".


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

The tool call ID this chunk belongs to.


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

The tool call ID this chunk belongs to.


[View source]