Skip to content

BooleanSessionConfigOption

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

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

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

    current_value: bool
    """The current value of the boolean option."""

current_value instance-attribute

current_value: bool

The current value of the boolean option.

type class-attribute instance-attribute

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

Discriminator for the config option type.

:fa-brands-github: Show source on GitHub