struct ACP::Protocol::AgentMessageChunkUpdate

Overview

A chunk of the agent's response being streamed. See: https://agentclientprotocol.com/protocol/prompt-turn#3-agent-reports-output

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 chunk of the agent's response being streamed. See: https://agentclientprotocol.com/protocol/prompt-turn#3-agent-reports-output


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

[View source]

Instance Method Detail

def content : JSON::Any #

The content chunk. In the ACP spec this is a ContentBlock (ContentChunk).


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

The content chunk. In the ACP spec this is a ContentBlock (ContentChunk).


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

Helper to get the actual text content regardless of wrapping.


[View source]