struct
ACP::Protocol::AgentThoughtChunkUpdate
- ACP::Protocol::AgentThoughtChunkUpdate
- ACP::Protocol::SessionUpdate
- Struct
- Value
- Object
Overview
A chunk of the agent's internal reasoning/chain-of-thought being streamed. See: https://agentclientprotocol.com/protocol/prompt-turn
Included Modules
- JSON::Serializable
Defined in:
acp/protocol/updates.crConstructors
-
.new(pull : JSON::PullParser)
A chunk of the agent's internal reasoning/chain-of-thought being streamed.
- .new(content : JSON::Any, meta : Hash(String, JSON::Any) | Nil = nil)
Instance Method Summary
-
#content : JSON::Any
The thought content chunk.
-
#content=(content : JSON::Any)
The thought content chunk.
-
#meta : Hash(String, JSON::Any) | Nil
Extension metadata.
-
#meta=(meta : Hash(String, JSON::Any) | Nil)
Extension metadata.
-
#text : String
Helper to get the actual text content regardless of wrapping.
-
#title : String
Helper alias — some agents use "title" to label the thought.
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