struct ACP::Protocol::CurrentModeUpdate

Overview

Notification that the current session mode has changed. See: https://agentclientprotocol.com/protocol/session-modes#from-the-agent

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

Notification that the current session mode has changed. See: https://agentclientprotocol.com/protocol/session-modes#from-the-agent


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

[View source]

Instance Method Detail

def current_mode_id : String #

The ID of the current mode.


[View source]
def current_mode_id=(current_mode_id : String) #

The ID of the current mode.


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

Backward-compatible alias.


[View source]