struct ACP::Protocol::AgentMessageEndUpdate

Overview

Signals the end of an agent message.

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 end of an agent message.

NOTE Not part of the ACP spec.


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

[View source]

Instance Method Detail

def message_id : String | Nil #

Optional message ID for correlation.


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

Optional message ID for correlation.


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

Optional stop reason for this particular message.


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

Optional stop reason for this particular message.


[View source]