struct ACP::Protocol::PermissionOption

Overview

A single permission option the client can choose from. See: https://agentclientprotocol.com/protocol/tool-calls#permission-options

Included Modules

Defined in:

acp/protocol/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(option_id : String, name : String, kind : String = "allow_once", meta : Hash(String, JSON::Any) | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def id : String #

Backward-compatible alias: #id maps to #option_id.


[View source]
def kind : String #

Hint about the nature of this permission option (required). Values: "allow_once", "allow_always", "reject_once", "reject_always"


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

Hint about the nature of this permission option (required). Values: "allow_once", "allow_always", "reject_once", "reject_always"


[View source]
def label : String #

Backward-compatible alias: #label maps to #name.


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

Human-readable label to display to the user (required).


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

Human-readable label to display to the user (required).


[View source]
def option_id : String #

Unique identifier for this option (required).


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

Unique identifier for this option (required).


[View source]