struct
ACP::Protocol::AgentMessageChunkUpdate
- ACP::Protocol::AgentMessageChunkUpdate
- ACP::Protocol::SessionUpdate
- Struct
- Value
- Object
Overview
A chunk of the agent's response being streamed. See: https://agentclientprotocol.com/protocol/prompt-turn#3-agent-reports-output
Included Modules
- JSON::Serializable
Defined in:
acp/protocol/updates.crConstructors
-
.new(pull : JSON::PullParser)
A chunk of the agent's response 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.
-
#text : String
Helper to get the actual text content regardless of wrapping.
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
Instance Method Detail
def content=(content : JSON::Any)
#
The content chunk. In the ACP spec this is a ContentBlock (ContentChunk).