struct ACP::Protocol::AgentThoughtChunkUpdate

Overview

A chunk of the agent's internal reasoning/chain-of-thought being streamed. See: https://agentclientprotocol.com/protocol/prompt-turn

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 internal reasoning/chain-of-thought being streamed. See: https://agentclientprotocol.com/protocol/prompt-turn


[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 thought content chunk.


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

The thought content chunk.


[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]
def title : String #

Helper alias — some agents use "title" to label the thought.


[View source]