Skip to content

SelectSessionConfigOption

Base classes

Name Children Inherits
BaseSessionConfigOption
aclientp.schema.config_options
Base fields shared by all session config option variants.

⋔ Inheritance diagram

graph TD
  95970862226672["config_options.SelectSessionConfigOption"]
  95970858439808["config_options.BaseSessionConfigOption"]
  95970862258240["base.AnnotatedObject"]
  95970862254416["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970858439808 --> 95970862226672
  95970862258240 --> 95970858439808
  95970862254416 --> 95970862258240
  95970851503232 --> 95970862254416
  125067848591872 --> 95970851503232

🛈 DocStrings

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
class SelectSessionConfigOption(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.
    """

    type: Literal["select"] = Field(default="select", init=False)
    """Discriminator for the config option type."""

    current_value: SessionConfigValueId
    """The currently selected value."""

    options: SessionConfigSelectOptions
    """The set of selectable options."""

current_value instance-attribute

current_value: SessionConfigValueId

The currently selected value.

options instance-attribute

The set of selectable options.

type class-attribute instance-attribute

type: Literal['select'] = Field(default='select', init=False)

Discriminator for the config option type.

:fa-brands-github: Show source on GitHub