config_options
Class info¶
Classes¶
| Name | Children | Inherits |
|---|---|---|
| BaseSessionConfigOption aclientp.schema.config_options Base fields shared by all session config option variants. |
||
| BooleanSessionConfigOption aclientp.schema.config_options **UNSTABLE**: This capability is not part of the spec yet. |
||
| InitialSessionConfigOption aclientp.schema.config_options **UNSTABLE**: A config option value to apply when a session is set up. |
||
| SelectSessionConfigOption aclientp.schema.config_options A select-type session configuration option. |
||
| SessionConfigOptionValueBoolean aclientp.schema.config_options A boolean value for setting a config option (type: "boolean"). |
||
| SessionConfigOptionValueId aclientp.schema.config_options A SessionConfigValueId string value for setting a config option. |
||
| SessionConfigSelectGroup aclientp.schema.config_options A group of possible values for a configuration selector. |
||
| SessionConfigSelectOption aclientp.schema.config_options A possible value for a configuration selector. |
🛈 DocStrings¶
Session state schema definitions.
SessionConfigGroupId
module-attribute
¶
Unique identifier for a group of values within a configuration option.
SessionConfigId
module-attribute
¶
Unique identifier for a configuration option.
SessionConfigOption
module-attribute
¶
SessionConfigOption = Annotated[
SelectSessionConfigOption | BooleanSessionConfigOption, Discriminator("type")
]
A session configuration option, discriminated by type.
For type: "select" the options and current_value (string) fields
are present. For type: "boolean" only current_value (bool) is present.
SessionConfigOptionCategory
module-attribute
¶
SessionConfigOptionCategory = (
Literal["mode", "model", "model_config", "speed", "thought_level", "other"] | str
)
Semantic category for a session configuration option.
This is intended to help Clients distinguish broadly common selectors (e.g. model selector vs
session mode selector vs thought/reasoning level) for UX purposes (keyboard shortcuts, icons,
placement). It MUST NOT be required for correctness. Clients MUST handle missing or unknown
categories gracefully (treat as other).
speed is UNSTABLE.
SessionConfigOptionValue
module-attribute
¶
SessionConfigOptionValue = SessionConfigOptionValueBoolean | SessionConfigOptionValueId
The value to set for a session configuration option.
When type is "boolean", carries a bool. Otherwise (or when type
is absent), carries a SessionConfigValueId string.
SessionConfigSelectOptions
module-attribute
¶
SessionConfigSelectOptions = (
Sequence[SessionConfigSelectOption] | Sequence[SessionConfigSelectGroup]
)
The possible values for a configuration selector, optionally organized into groups.
SessionConfigValueId
module-attribute
¶
Unique identifier for a possible value within a configuration option.
BaseSessionConfigOption
¶
Bases: AnnotatedObject
Base fields shared by all session config option variants.
Source code in src/aclientp/schema/config_options.py
category
class-attribute
instance-attribute
¶
category: SessionConfigOptionCategory | None = None
Optional semantic category for this option (UX only).
description
class-attribute
instance-attribute
¶
Optional description for the Client to display to the user.
BooleanSessionConfigOption
¶
Bases: BaseSessionConfigOption
UNSTABLE: This capability is not part of the spec yet.
A boolean on/off toggle session configuration option.
Advertised by the agent to describe an available boolean config option and its current state.
See SessionConfigOptionValueBoolean for the value sent by the client when changing it.
Source code in src/aclientp/schema/config_options.py
InitialSessionConfigOption
¶
Bases: AnnotatedObject
UNSTABLE: A config option value to apply when a session is set up.
Sent on session/new, session/load, session/resume and session/fork.
When type is "boolean", value is a bool, otherwise a value ID string.
Source code in src/aclientp/schema/config_options.py
config_id
instance-attribute
¶
config_id: SessionConfigId
The ID of the configuration option to set.
type
class-attribute
instance-attribute
¶
The value type discriminator. "boolean" for bool values, absent for value IDs.
SelectSessionConfigOption
¶
Bases: BaseSessionConfigOption
A select-type session configuration option.
Single-value selector (dropdown) with a list of options.
Advertised by the agent to describe an available select config option and its current state.
See SessionConfigOptionValueId for the value sent by the client when changing it.
Source code in src/aclientp/schema/config_options.py
current_value
instance-attribute
¶
current_value: SessionConfigValueId
The currently selected value.
type
class-attribute
instance-attribute
¶
Discriminator for the config option type.
SessionConfigOptionValueBoolean
¶
Bases: AnnotatedObject
A boolean value for setting a config option (type: "boolean").
Sent by the client to change a boolean config option.
See BooleanSessionConfigOption for the option definition advertised by the agent.
Source code in src/aclientp/schema/config_options.py
SessionConfigOptionValueId
¶
Bases: AnnotatedObject
A SessionConfigValueId string value for setting a config option.
This is the default when type is absent on the wire. Unknown type
values with string payloads also gracefully deserialize into this variant.
Sent by the client to change a select config option.
See SelectSessionConfigOption for the option definition advertised by the agent.
Source code in src/aclientp/schema/config_options.py
SessionConfigSelectGroup
¶
Bases: AnnotatedObject
A group of possible values for a configuration selector.
Source code in src/aclientp/schema/config_options.py
options
instance-attribute
¶
options: Sequence[SessionConfigSelectOption]
The set of option values in this group.
SessionConfigSelectOption
¶
Bases: AnnotatedObject
A possible value for a configuration selector.
Source code in src/aclientp/schema/config_options.py
description
class-attribute
instance-attribute
¶
Optional description for this option value.