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
- ACP::Protocol::ChunkContentHelper
- 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 content chunk.
-
#content=(content : JSON::Any)
The content chunk.
-
#meta : Hash(String, JSON::Any) | Nil
Extension metadata.
-
#meta=(meta : Hash(String, JSON::Any) | Nil)
Extension metadata.
-
#title : String
Backward-compatible alias for
text.
Instance methods inherited from module ACP::Protocol::ChunkContentHelper
content_block : ContentBlock | Nil
content_block,
text : String
text,
to_content_chunk : ContentChunk | Nil
to_content_chunk
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
Instance Method Detail
def content : JSON::Any
#
The content chunk. Kept as JSON::Any for backward compatibility with agents that may send varying formats.
def content=(content : JSON::Any)
#
The content chunk. Kept as JSON::Any for backward compatibility with agents that may send varying formats.