Skip to content

SessionMode

Base classes

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

⋔ Inheritance diagram

graph TD
  95970862553984["session_state.SessionMode"]
  95970862258240["base.AnnotatedObject"]
  95970862254416["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970862258240 --> 95970862553984
  95970862254416 --> 95970862258240
  95970851503232 --> 95970862254416
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: AnnotatedObject

A mode the agent can operate in.

See protocol docs: Session Modes

Source code in src/aclientp/schema/session_state.py
class SessionMode(AnnotatedObject):
    """A mode the agent can operate in.

    See protocol docs: [Session Modes](https://agentclientprotocol.com/protocol/session-modes)
    """

    description: str | None = None
    """Optional description of the mode."""

    id: str
    """Unique identifier for the mode."""

    name: str
    """Human-readable name of the mode."""

description class-attribute instance-attribute

description: str | None = None

Optional description of the mode.

id instance-attribute

id: str

Unique identifier for the mode.

name instance-attribute

name: str

Human-readable name of the mode.

:fa-brands-github: Show source on GitHub