struct
ACP::Protocol::PermissionOption
- ACP::Protocol::PermissionOption
- Struct
- Value
- Object
Overview
A single permission option the client can choose from. See: https://agentclientprotocol.com/protocol/tool-calls#permission-options
Included Modules
- JSON::Serializable
Defined in:
acp/protocol/types.crConstructors
- .new(option_id : String, name : String, kind : String = "allow_once", meta : Hash(String, JSON::Any) | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#id : String
Backward-compatible alias:
#idmaps to#option_id. -
#kind : String
Hint about the nature of this permission option (required).
-
#kind=(kind : String)
Hint about the nature of this permission option (required).
- #label : String
-
#meta : Hash(String, JSON::Any) | Nil
Extension metadata.
-
#meta=(meta : Hash(String, JSON::Any) | Nil)
Extension metadata.
-
#name : String
Human-readable label to display to the user (required).
-
#name=(name : String)
Human-readable label to display to the user (required).
-
#option_id : String
Unique identifier for this option (required).
-
#option_id=(option_id : String)
Unique identifier for this option (required).
Constructor Detail
Instance Method Detail
Hint about the nature of this permission option (required). Values: "allow_once", "allow_always", "reject_once", "reject_always"
Hint about the nature of this permission option (required). Values: "allow_once", "allow_always", "reject_once", "reject_always"