struct
ACP::Protocol::ToolCallChunkUpdate
- ACP::Protocol::ToolCallChunkUpdate
- ACP::Protocol::SessionUpdate
- Struct
- Value
- Object
Overview
A streamed chunk of tool call input or output.
NOTE Not part of the ACP spec. Use tool_call_update instead.
Included Modules
- JSON::Serializable
Defined in:
acp/protocol/updates.crConstructors
-
.new(pull : JSON::PullParser)
A streamed chunk of tool call input or output.
- .new(tool_call_id : String, content : String | Nil = nil, kind : String | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil)
Instance Method Summary
-
#content : String | Nil
The content of this tool call chunk.
-
#content=(content : String | Nil)
The content of this tool call chunk.
-
#kind : String | Nil
Optional field indicating whether this is "input" or "output".
-
#kind=(kind : String | Nil)
Optional field indicating whether this is "input" or "output".
-
#meta : Hash(String, JSON::Any) | Nil
Extension metadata.
-
#meta=(meta : Hash(String, JSON::Any) | Nil)
Extension metadata.
-
#tool_call_id : String
The tool call ID this chunk belongs to.
-
#tool_call_id=(tool_call_id : String)
The tool call ID this chunk belongs to.
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.
def self.new(tool_call_id : String, content : String | Nil = nil, kind : String | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil)
#