struct
ACP::Protocol::AgentMessageStartUpdate
- ACP::Protocol::AgentMessageStartUpdate
- ACP::Protocol::SessionUpdate
- Struct
- Value
- Object
Overview
Signals the beginning of a new agent message. The client should prepare to receive streamed chunks.
NOTE Not part of the ACP spec.
Included Modules
- JSON::Serializable
Defined in:
acp/protocol/updates.crConstructors
-
.new(pull : JSON::PullParser)
Signals the beginning of a new agent message.
- .new(message_id : String | Nil = nil, role : String | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil)
Instance Method Summary
-
#message_id : String | Nil
Optional message ID for correlating start/chunk/end events.
-
#message_id=(message_id : String | Nil)
Optional message ID for correlating start/chunk/end events.
-
#meta : Hash(String, JSON::Any) | Nil
Extension metadata.
-
#meta=(meta : Hash(String, JSON::Any) | Nil)
Extension metadata.
-
#role : String | Nil
Optional role indicator (usually "assistant").
-
#role=(role : String | Nil)
Optional role indicator (usually "assistant").
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)
#
Signals the beginning of a new agent message. The client should prepare to receive streamed chunks.
NOTE Not part of the ACP spec.
def self.new(message_id : String | Nil = nil, role : String | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil)
#
Instance Method Detail
def message_id=(message_id : String | Nil)
#
Optional message ID for correlating start/chunk/end events.