Skip to content

SessionInfo

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: AnnotatedObject

Information about a session returned by session/list.

Source code in src/aclientp/schema/session_state.py
class SessionInfo(AnnotatedObject):
    """Information about a session returned by session/list."""

    cwd: str
    """The working directory for this session. Must be an absolute path."""

    additional_directories: Sequence[str] = Field(default_factory=list)
    """Additional workspace roots reported for this session. Each path must be absolute."""

    session_id: str
    """Unique identifier for the session."""

    title: str | None = None
    """Human-readable title for the session."""

    updated_at: str | None = None
    """ISO 8601 timestamp of last activity."""

    archived: bool | None = None
    """**UNSTABLE**: Whether the session is archived."""

additional_directories class-attribute instance-attribute

additional_directories: Sequence[str] = Field(default_factory=list)

Additional workspace roots reported for this session. Each path must be absolute.

archived class-attribute instance-attribute

archived: bool | None = None

UNSTABLE: Whether the session is archived.

cwd instance-attribute

cwd: str

The working directory for this session. Must be an absolute path.

session_id instance-attribute

session_id: str

Unique identifier for the session.

title class-attribute instance-attribute

title: str | None = None

Human-readable title for the session.

updated_at class-attribute instance-attribute

updated_at: str | None = None

ISO 8601 timestamp of last activity.

:fa-brands-github: Show source on GitHub