Skip to content

InitialSessionConfigOption

Base classes

Name Children Inherits
AnnotatedObject
aclientp.schema.base
Base class for generated models.

⋔ Inheritance diagram

graph TD
  95970861140816["config_options.InitialSessionConfigOption"]
  95970862258240["base.AnnotatedObject"]
  95970862254416["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970862258240 --> 95970861140816
  95970862254416 --> 95970862258240
  95970851503232 --> 95970862254416
  125067848591872 --> 95970851503232

🛈 DocStrings

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

    config_id: SessionConfigId
    """The ID of the configuration option to set."""

    type: Literal["boolean"] | None = None
    """The value type discriminator. ``"boolean"`` for bool values, absent for value IDs."""

    value: SessionConfigValueId | bool
    """The value to set."""

config_id instance-attribute

config_id: SessionConfigId

The ID of the configuration option to set.

type class-attribute instance-attribute

type: Literal['boolean'] | None = None

The value type discriminator. "boolean" for bool values, absent for value IDs.

value instance-attribute

value: SessionConfigValueId | bool

The value to set.

:fa-brands-github: Show source on GitHub