session_state
Class info¶
Classes¶
| Name | Children | Inherits |
|---|---|---|
| SessionInfo aclientp.schema.session_state Information about a session returned by session/list. |
||
| SessionMode aclientp.schema.session_state A mode the agent can operate in. |
||
| SessionModeState aclientp.schema.session_state The set of modes and the one currently active. |
🛈 DocStrings¶
Session state schema definitions.
SessionArchiveFilter
module-attribute
¶
UNSTABLE: Which sessions session/list returns by archive state.
exclude (the default) returns only sessions that are not archived.
SessionStatus
module-attribute
¶
UNSTABLE: Whether the Agent has the session in memory.
open: The Agent has the session in memory, for any connection.saved: The Agent knows the session and can resume it, but does not have it in memory.
SessionInfo
¶
Bases: AnnotatedObject
Information about a session returned by session/list.
Source code in src/aclientp/schema/session_state.py
additional_directories
class-attribute
instance-attribute
¶
Additional workspace roots reported for this session. Each path must be absolute.
archived
class-attribute
instance-attribute
¶
UNSTABLE: Whether the session is archived.
title
class-attribute
instance-attribute
¶
Human-readable title for the session.
updated_at
class-attribute
instance-attribute
¶
ISO 8601 timestamp of last activity.
SessionMode
¶
Bases: AnnotatedObject
A mode the agent can operate in.
See protocol docs: Session Modes
Source code in src/aclientp/schema/session_state.py
SessionModeState
¶
Bases: AnnotatedObject
The set of modes and the one currently active.
Source code in src/aclientp/schema/session_state.py
available_modes
instance-attribute
¶
available_modes: Sequence[SessionMode]
The set of modes that the Agent can operate in.