struct
ACP::Protocol::ConfigOptionGroup
- ACP::Protocol::ConfigOptionGroup
- Struct
- Value
- Object
Overview
A group of possible values for a session configuration option.
Matches the Rust SDK's SessionConfigSelectGroup.
Groups allow organizing option values into logical sections
(e.g., grouping models by provider).
See: https://agentclientprotocol.com/protocol/session-config-options
Included Modules
- JSON::Serializable
Defined in:
acp/protocol/types.crConstructors
- .new(group : String, name : String, options : Array(ConfigOptionValue) = [] of ConfigOptionValue, meta : Hash(String, JSON::Any) | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#group : String
Unique identifier for this group (required).
-
#group=(group : String)
Unique identifier for this group (required).
-
#id : String
Backward-compatible alias.
-
#meta : Hash(String, JSON::Any) | Nil
Extension metadata.
-
#meta=(meta : Hash(String, JSON::Any) | Nil)
Extension metadata.
-
#name : String
Human-readable label for this group (required).
-
#name=(name : String)
Human-readable label for this group (required).
-
#options : Array(ConfigOptionValue)
The values in this group (required).
-
#options=(options : Array(ConfigOptionValue))
The values in this group (required).
Constructor Detail
Instance Method Detail
Unique identifier for this group (required). Per the ACP schema
(SessionConfigSelectGroup) this is carried on the wire under the key
"group" — NOT "id". Maps to the Rust SDK's SessionConfigGroupId.
Unique identifier for this group (required). Per the ACP schema
(SessionConfigSelectGroup) this is carried on the wire under the key
"group" — NOT "id". Maps to the Rust SDK's SessionConfigGroupId.
Backward-compatible alias. This identifier used to be exposed (and
mis-serialized) as #id; #group is the spec-correct name.