Skip to content

SessionInfo

Base classes

Name Children Inherits
AnnotatedObject
aclientp.schema.v2.base
A v2 object with the ``_meta`` extension point.

⋔ Inheritance diagram

graph TD
  95970871194944["sessions.SessionInfo"]
  95970868359040["base.AnnotatedObject"]
  95970855946400["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970868359040 --> 95970871194944
  95970855946400 --> 95970868359040
  95970851503232 --> 95970855946400
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: AnnotatedObject

Information about a session returned by session/list.

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

    session_id: SessionId
    """Unique identifier for the session"""

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

    additional_directories: Sequence[AbsolutePath] | MISSING = MISSING
    """Additional workspace roots reported for this session. Each path must be absolute."""

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

    updated_at: str | MISSING | None = MISSING
    """RFC 3339 timestamp of last activity."""

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

additional_directories class-attribute instance-attribute

additional_directories: Sequence[AbsolutePath] | MISSING = MISSING

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

archived class-attribute instance-attribute

archived: bool | MISSING | None = MISSING

Whether the session is archived.

cwd instance-attribute

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

session_id instance-attribute

session_id: SessionId

Unique identifier for the session

title class-attribute instance-attribute

title: str | MISSING | None = MISSING

Human-readable title for the session

updated_at class-attribute instance-attribute

updated_at: str | MISSING | None = MISSING

RFC 3339 timestamp of last activity.

:fa-brands-github: Show source on GitHub