struct
ACP::Protocol::ConfigOption
- ACP::Protocol::ConfigOption
- Struct
- Value
- Object
Overview
A single session configuration option and its current state. See: https://agentclientprotocol.com/protocol/session-config-options#configoption
Included Modules
- JSON::Serializable
Defined in:
acp/protocol/types.crConstructors
- .new(id : String, name : String, config_type : String = "select", current_value : String | Nil = nil, options : Array(ConfigOptionValue) | Nil = nil, description : String | Nil = nil, category : String | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#category : String | Nil
Optional semantic category to help Clients provide consistent UX.
-
#category=(category : String | Nil)
Optional semantic category to help Clients provide consistent UX.
-
#config_type : String
The type of input control (required).
-
#config_type=(config_type : String)
The type of input control (required).
-
#current_value : String | Nil
The currently selected value (required).
-
#current_value=(current_value : String | Nil)
The currently selected value (required).
-
#description : String | Nil
Optional description providing more details.
-
#description=(description : String | Nil)
Optional description providing more details.
-
#id : String
Unique identifier for this config option (required).
-
#id=(id : String)
Unique identifier for this config option (required).
-
#label : String
Backward-compatible alias for
#name. -
#meta : Hash(String, JSON::Any) | Nil
Extension metadata.
-
#meta=(meta : Hash(String, JSON::Any) | Nil)
Extension metadata.
-
#name : String
Human-readable label (required).
-
#name=(name : String)
Human-readable label (required).
-
#options : Array(ConfigOptionValue) | Nil
The available values for this option (required for "select" type).
-
#options=(options : Array(ConfigOptionValue) | Nil)
The available values for this option (required for "select" type).
-
#value : String | Nil
Backward-compatible alias for
#current_value.
Constructor Detail
Instance Method Detail
Optional semantic category to help Clients provide consistent UX.
Reserved categories: "mode", "model", "thought_level".
Names beginning with _ are free for custom use.
Optional semantic category to help Clients provide consistent UX.
Reserved categories: "mode", "model", "thought_level".
Names beginning with _ are free for custom use.
The type of input control (required). Currently only "select" is supported.
The type of input control (required). Currently only "select" is supported.
The available values for this option (required for "select" type).
The available values for this option (required for "select" type).