struct ACP::Protocol::UserMessageChunkUpdate

Overview

A chunk of the user's message being streamed (e.g., during session/load replay). See: https://agentclientprotocol.com/protocol/session-setup#loading-a-session

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 user's message being streamed (e.g., during session/load replay). See: https://agentclientprotocol.com/protocol/session-setup#loading-a-session


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