Skip to content

SetSessionConfigOptionRequest

Base classes

Name Children Inherits
Request
aclientp.schema.base
Base request model.

⋔ Inheritance diagram

graph TD
  95970860784864["client_requests.SetSessionConfigOptionRequest"]
  95970858197488["base.Request"]
  95970862258240["base.AnnotatedObject"]
  95970862254416["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970858197488 --> 95970860784864
  95970862258240 --> 95970858197488
  95970862254416 --> 95970862258240
  95970851503232 --> 95970862254416
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: Request

Request parameters for setting a session configuration option.

Supports both select (string value ID) and boolean config options. When type is "boolean", value is a bool. When type is absent or "value_id", value is a string.

See protocol docs: Session Config Options

Source code in src/aclientp/schema/client_requests.py
class SetSessionConfigOptionRequest(Request):
    """Request parameters for setting a session configuration option.

    Supports both select (string value ID) and boolean config options.
    When ``type`` is ``"boolean"``, ``value`` is a bool.
    When ``type`` is absent or ``"value_id"``, ``value`` is a string.

    See protocol docs: [Session Config Options](https://agentclientprotocol.com/protocol/session-config-options)
    """

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

    session_id: str
    """The ID of the session to set the config option for."""

    type: str | None = None
    """The value type discriminator. ``"boolean"`` for bool values, absent for string value IDs."""

    value: str | bool
    """The value to set. String for select options, bool for boolean options."""

config_id instance-attribute

config_id: str

The ID of the configuration option to set.

session_id instance-attribute

session_id: str

The ID of the session to set the config option for.

type class-attribute instance-attribute

type: str | None = None

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

value instance-attribute

value: str | bool

The value to set. String for select options, bool for boolean options.

:fa-brands-github: Show source on GitHub