struct
ACP::Protocol::AvailableCommandsUpdate
- ACP::Protocol::AvailableCommandsUpdate
- ACP::Protocol::SessionUpdate
- Struct
- Value
- Object
Overview
Notification that available slash commands have changed. See: https://agentclientprotocol.com/protocol/slash-commands
Included Modules
- JSON::Serializable
Defined in:
acp/protocol/updates.crConstructors
- .new(available_commands : Array(AvailableCommand) = [] of AvailableCommand, meta : Hash(String, JSON::Any) | Nil = nil)
-
.new(pull : JSON::PullParser)
Notification that available slash commands have changed.
Instance Method Summary
-
#available_commands : Array(AvailableCommand)
The commands the agent can execute.
-
#available_commands=(available_commands : Array(AvailableCommand))
The commands the agent can execute.
-
#meta : Hash(String, JSON::Any) | Nil
Extension metadata.
-
#meta=(meta : Hash(String, JSON::Any) | Nil)
Extension metadata.
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(available_commands : Array(AvailableCommand) = [] of AvailableCommand, meta : Hash(String, JSON::Any) | Nil = nil)
#
def self.new(pull : JSON::PullParser)
#
Notification that available slash commands have changed. See: https://agentclientprotocol.com/protocol/slash-commands
Instance Method Detail
def available_commands=(available_commands : Array(AvailableCommand))
#
The commands the agent can execute.