struct ACP::Protocol::AgentMessageStartUpdate

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

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) #

Signals the beginning of a new agent message. The client should prepare to receive streamed chunks.

NOTE Not part of the ACP spec.


[View source]
def self.new(message_id : String | Nil = nil, role : String | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil) #

[View source]

Instance Method Detail

def message_id : String | Nil #

Optional message ID for correlating start/chunk/end events.


[View source]
def message_id=(message_id : String | Nil) #

Optional message ID for correlating start/chunk/end events.


[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 role : String | Nil #

Optional role indicator (usually "assistant").


[View source]
def role=(role : String | Nil) #

Optional role indicator (usually "assistant").


[View source]