Skip to content

sessions

Class info

Classes

Name Children Inherits
ArchiveSessionRequest
aclientp.schema.v2.sessions
**UNSTABLE**: Request parameters for archiving a session.
    ArchiveSessionResponse
    aclientp.schema.v2.sessions
    **UNSTABLE**: Response from archiving a session.
      CancelSessionNotification
      aclientp.schema.v2.sessions
      Notification to cancel a session's foreground work and its prompts not yet inserted.
        CloseSessionRequest
        aclientp.schema.v2.sessions
        Request parameters for closing an active session.
          CloseSessionResponse
          aclientp.schema.v2.sessions
          Response from closing a session.
            DeleteSessionRequest
            aclientp.schema.v2.sessions
            Request parameters for deleting an existing session from ``session/list``.
              DeleteSessionResponse
              aclientp.schema.v2.sessions
              Response from deleting a session.
                ForkSessionRequest
                aclientp.schema.v2.sessions
                **UNSTABLE**: Request parameters for forking an existing session.
                  ForkSessionResponse
                  aclientp.schema.v2.sessions
                  **UNSTABLE**: Response from forking an existing session.
                    ListSessionsRequest
                    aclientp.schema.v2.sessions
                    Request parameters for listing existing sessions.
                      ListSessionsResponse
                      aclientp.schema.v2.sessions
                      Response from listing sessions.
                        NewSessionRequest
                        aclientp.schema.v2.sessions
                        Request parameters for creating a new session.
                          NewSessionResponse
                          aclientp.schema.v2.sessions
                          Response from creating a new session.
                            ReplayFromStart
                            aclientp.schema.v2.sessions
                            Replay all retained conversation history from its first replayable entry.
                              ResumeSessionRequest
                              aclientp.schema.v2.sessions
                              Request parameters for resuming an existing session.
                                ResumeSessionResponse
                                aclientp.schema.v2.sessions
                                Response from resuming an existing session.
                                  SessionInfo
                                  aclientp.schema.v2.sessions
                                  Information about a session returned by ``session/list``.
                                    SessionOptionsRequest
                                    aclientp.schema.v2.sessions
                                    **UNSTABLE**: Parameters of ``session/options``.
                                      SessionOptionsResponse
                                      aclientp.schema.v2.sessions
                                      **UNSTABLE**: Response from ``session/options``.
                                        SessionStatusRequest
                                        aclientp.schema.v2.sessions
                                        **UNSTABLE**: Request parameters for checking the status of a session.
                                          SessionStatusResponse
                                          aclientp.schema.v2.sessions
                                          **UNSTABLE**: Response from checking the status of a session.
                                            SetSessionTitleRequest
                                            aclientp.schema.v2.sessions
                                            **UNSTABLE**: Request parameters for setting the title of a session.
                                              SetSessionTitleResponse
                                              aclientp.schema.v2.sessions
                                              **UNSTABLE**: Response from setting the title of a session.
                                                SystemPrompt
                                                aclientp.schema.v2.sessions
                                                Client-provided system-level instructions for a session.
                                                  UnarchiveSessionRequest
                                                  aclientp.schema.v2.sessions
                                                  **UNSTABLE**: Request parameters for unarchiving a session.
                                                    UnarchiveSessionResponse
                                                    aclientp.schema.v2.sessions
                                                    **UNSTABLE**: Response from unarchiving a session.
                                                      UnknownReplayFrom
                                                      aclientp.schema.v2.sessions
                                                      A custom or future replay cursor; ``type`` values starting with ``_`` are extensions.

                                                        🛈 DocStrings

                                                        v2 session lifecycle: create, resume, fork, close, list and manage sessions.

                                                        session/load is gone in v2: session/resume covers both resuming without replay and full replay, selected with replayFrom.

                                                        ReplayFrom module-attribute

                                                        ReplayFrom = Annotated[
                                                            Annotated[ReplayFromStart, Tag("start")] | Annotated[UnknownReplayFrom, Tag(OTHER_TAG)],
                                                            Discriminator(open_discriminator("type", frozenset({"start"}))),
                                                        ]
                                                        

                                                        Inclusive cursor of where replayed history begins on session/resume.

                                                        SessionArchiveFilter module-attribute

                                                        SessionArchiveFilter = Literal['exclude', 'include', 'only'] | str
                                                        

                                                        UNSTABLE: Which sessions session/list returns by archive state (default exclude).

                                                        SessionStatus module-attribute

                                                        SessionStatus = Literal['open', 'saved'] | str
                                                        

                                                        UNSTABLE: Whether the agent has a session in memory (open) or can resume it (saved).

                                                        Clients MUST treat unknown values as saved.

                                                        SystemPromptMode module-attribute

                                                        SystemPromptMode = Literal['append', 'override'] | str
                                                        

                                                        How the agent combines a client-provided system prompt with its own instructions.

                                                        Every agent with the systemPrompt capability supports append; override needs session.systemPrompt.mode.override. Values starting with _ are extensions.

                                                        ArchiveSessionRequest

                                                        Bases: AnnotatedObject

                                                        UNSTABLE: Request parameters for archiving a session.

                                                        Source code in src/aclientp/schema/v2/sessions.py
                                                        class ArchiveSessionRequest(AnnotatedObject):
                                                            """**UNSTABLE**: Request parameters for archiving a session."""
                                                        
                                                            session_id: SessionId
                                                            """The ID of the session to archive."""
                                                        

                                                        session_id instance-attribute

                                                        session_id: SessionId
                                                        

                                                        The ID of the session to archive.

                                                        ArchiveSessionResponse

                                                        Bases: AnnotatedObject

                                                        UNSTABLE: Response from archiving a session.

                                                        Source code in src/aclientp/schema/v2/sessions.py
                                                        class ArchiveSessionResponse(AnnotatedObject):
                                                            """**UNSTABLE**: Response from archiving a session."""
                                                        

                                                        CancelSessionNotification

                                                        Bases: AnnotatedObject

                                                        Notification to cancel a session's foreground work and its prompts not yet inserted.

                                                        Source code in src/aclientp/schema/v2/sessions.py
                                                        class CancelSessionNotification(AnnotatedObject):
                                                            """Notification to cancel a session's foreground work and its prompts not yet inserted."""
                                                        
                                                            session_id: SessionId
                                                            """The ID of the session whose foreground work to cancel."""
                                                        

                                                        session_id instance-attribute

                                                        session_id: SessionId
                                                        

                                                        The ID of the session whose foreground work to cancel.

                                                        CloseSessionRequest

                                                        Bases: AnnotatedObject

                                                        Request parameters for closing an active session.

                                                        Source code in src/aclientp/schema/v2/sessions.py
                                                        class CloseSessionRequest(AnnotatedObject):
                                                            """Request parameters for closing an active session."""
                                                        
                                                            session_id: SessionId
                                                            """The ID of the session to close."""
                                                        

                                                        session_id instance-attribute

                                                        session_id: SessionId
                                                        

                                                        The ID of the session to close.

                                                        CloseSessionResponse

                                                        Bases: AnnotatedObject

                                                        Response from closing a session.

                                                        Source code in src/aclientp/schema/v2/sessions.py
                                                        class CloseSessionResponse(AnnotatedObject):
                                                            """Response from closing a session."""
                                                        

                                                        DeleteSessionRequest

                                                        Bases: AnnotatedObject

                                                        Request parameters for deleting an existing session from session/list.

                                                        Source code in src/aclientp/schema/v2/sessions.py
                                                        class DeleteSessionRequest(AnnotatedObject):
                                                            """Request parameters for deleting an existing session from ``session/list``."""
                                                        
                                                            session_id: SessionId
                                                            """The ID of the session to delete."""
                                                        

                                                        session_id instance-attribute

                                                        session_id: SessionId
                                                        

                                                        The ID of the session to delete.

                                                        DeleteSessionResponse

                                                        Bases: AnnotatedObject

                                                        Response from deleting a session.

                                                        Source code in src/aclientp/schema/v2/sessions.py
                                                        class DeleteSessionResponse(AnnotatedObject):
                                                            """Response from deleting a session."""
                                                        

                                                        ForkSessionRequest

                                                        Bases: AnnotatedObject

                                                        UNSTABLE: Request parameters for forking an existing session.

                                                        Source code in src/aclientp/schema/v2/sessions.py
                                                        class ForkSessionRequest(AnnotatedObject):
                                                            """**UNSTABLE**: Request parameters for forking an existing session."""
                                                        
                                                            session_id: SessionId
                                                            """The ID of the session to fork."""
                                                        
                                                            cursor_id: CursorId | MISSING | None = MISSING
                                                            """The session cursor to fork at. The new session's history is the source session's history
                                                            before the cursor."""
                                                        
                                                            cwd: AbsolutePath
                                                            """The working directory for this session. Must be an absolute path."""
                                                        
                                                            additional_directories: Sequence[AbsolutePath] | MISSING = MISSING
                                                            """Additional workspace roots to activate for this session. Each path must be absolute."""
                                                        
                                                            mcp_servers: Sequence[McpServer] | MISSING = MISSING
                                                            """List of MCP servers to connect to for this session."""
                                                        
                                                            system_prompt: SystemPrompt | MISSING | None = MISSING
                                                            """System-level instructions for the forked session."""
                                                        
                                                            config_options: Sequence[InitialSessionConfigOption] | MISSING = MISSING
                                                            """Initial values for the forked session's config options."""
                                                        

                                                        additional_directories class-attribute instance-attribute

                                                        additional_directories: Sequence[AbsolutePath] | MISSING = MISSING
                                                        

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

                                                        config_options class-attribute instance-attribute

                                                        config_options: Sequence[InitialSessionConfigOption] | MISSING = MISSING
                                                        

                                                        Initial values for the forked session's config options.

                                                        cursor_id class-attribute instance-attribute

                                                        cursor_id: CursorId | MISSING | None = MISSING
                                                        

                                                        The session cursor to fork at. The new session's history is the source session's history before the cursor.

                                                        cwd instance-attribute

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

                                                        mcp_servers class-attribute instance-attribute

                                                        mcp_servers: Sequence[McpServer] | MISSING = MISSING
                                                        

                                                        List of MCP servers to connect to for this session.

                                                        session_id instance-attribute

                                                        session_id: SessionId
                                                        

                                                        The ID of the session to fork.

                                                        system_prompt class-attribute instance-attribute

                                                        system_prompt: SystemPrompt | MISSING | None = MISSING
                                                        

                                                        System-level instructions for the forked session.

                                                        ForkSessionResponse

                                                        Bases: AnnotatedObject

                                                        UNSTABLE: Response from forking an existing session.

                                                        Source code in src/aclientp/schema/v2/sessions.py
                                                        class ForkSessionResponse(AnnotatedObject):
                                                            """**UNSTABLE**: Response from forking an existing session."""
                                                        
                                                            session_id: SessionId
                                                            """Unique identifier for the newly created forked session."""
                                                        
                                                            config_options: Sequence[SessionConfigOption] | MISSING = MISSING
                                                            """Initial session configuration options."""
                                                        
                                                            available_commands: Sequence[AvailableCommand] | MISSING = MISSING
                                                            """Initial commands the agent can execute in this session."""
                                                        

                                                        available_commands class-attribute instance-attribute

                                                        available_commands: Sequence[AvailableCommand] | MISSING = MISSING
                                                        

                                                        Initial commands the agent can execute in this session.

                                                        config_options class-attribute instance-attribute

                                                        config_options: Sequence[SessionConfigOption] | MISSING = MISSING
                                                        

                                                        Initial session configuration options.

                                                        session_id instance-attribute

                                                        session_id: SessionId
                                                        

                                                        Unique identifier for the newly created forked session.

                                                        ListSessionsRequest

                                                        Bases: AnnotatedObject

                                                        Request parameters for listing existing sessions.

                                                        Source code in src/aclientp/schema/v2/sessions.py
                                                        class ListSessionsRequest(AnnotatedObject):
                                                            """Request parameters for listing existing sessions."""
                                                        
                                                            cwd: AbsolutePath | MISSING | None = MISSING
                                                            """Filter sessions by working directory. Must be an absolute path."""
                                                        
                                                            cursor: SessionListCursor | MISSING | None = MISSING
                                                            """Opaque cursor token from a previous response's nextCursor field for cursor-based
                                                            pagination"""
                                                        
                                                            archived: SessionArchiveFilter | MISSING | None = MISSING
                                                            """Filter sessions by archive state."""
                                                        

                                                        archived class-attribute instance-attribute

                                                        archived: SessionArchiveFilter | MISSING | None = MISSING
                                                        

                                                        Filter sessions by archive state.

                                                        cursor class-attribute instance-attribute

                                                        cursor: SessionListCursor | MISSING | None = MISSING
                                                        

                                                        Opaque cursor token from a previous response's nextCursor field for cursor-based pagination

                                                        cwd class-attribute instance-attribute

                                                        cwd: AbsolutePath | MISSING | None = MISSING
                                                        

                                                        Filter sessions by working directory. Must be an absolute path.

                                                        ListSessionsResponse

                                                        Bases: AnnotatedObject

                                                        Response from listing sessions.

                                                        Source code in src/aclientp/schema/v2/sessions.py
                                                        class ListSessionsResponse(AnnotatedObject):
                                                            """Response from listing sessions."""
                                                        
                                                            sessions: Sequence[SessionInfo]
                                                            """Array of session information objects."""
                                                        
                                                            next_cursor: SessionListCursor | MISSING | None = MISSING
                                                            """Opaque cursor token. If present, pass this in the next request's cursor parameter to
                                                            fetch the next page. An empty string is a valid cursor, not the end of results."""
                                                        

                                                        next_cursor class-attribute instance-attribute

                                                        next_cursor: SessionListCursor | MISSING | None = MISSING
                                                        

                                                        Opaque cursor token. If present, pass this in the next request's cursor parameter to fetch the next page. An empty string is a valid cursor, not the end of results.

                                                        sessions instance-attribute

                                                        sessions: Sequence[SessionInfo]
                                                        

                                                        Array of session information objects.

                                                        NewSessionRequest

                                                        Bases: AnnotatedObject

                                                        Request parameters for creating a new session.

                                                        Source code in src/aclientp/schema/v2/sessions.py
                                                        class NewSessionRequest(AnnotatedObject):
                                                            """Request parameters for creating a new session."""
                                                        
                                                            cwd: AbsolutePath
                                                            """The working directory for this session. Must be an absolute path."""
                                                        
                                                            additional_directories: Sequence[AbsolutePath] | MISSING = MISSING
                                                            """Additional workspace roots for this session. Each path must be absolute."""
                                                        
                                                            mcp_servers: Sequence[McpServer] | MISSING = MISSING
                                                            """List of MCP (Model Context Protocol) servers the agent should connect to."""
                                                        
                                                            system_prompt: SystemPrompt | MISSING | None = MISSING
                                                            """System-level instructions for the new session."""
                                                        
                                                            config_options: Sequence[InitialSessionConfigOption] | MISSING = MISSING
                                                            """Initial values for the session's config options."""
                                                        

                                                        additional_directories class-attribute instance-attribute

                                                        additional_directories: Sequence[AbsolutePath] | MISSING = MISSING
                                                        

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

                                                        config_options class-attribute instance-attribute

                                                        config_options: Sequence[InitialSessionConfigOption] | MISSING = MISSING
                                                        

                                                        Initial values for the session's config options.

                                                        cwd instance-attribute

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

                                                        mcp_servers class-attribute instance-attribute

                                                        mcp_servers: Sequence[McpServer] | MISSING = MISSING
                                                        

                                                        List of MCP (Model Context Protocol) servers the agent should connect to.

                                                        system_prompt class-attribute instance-attribute

                                                        system_prompt: SystemPrompt | MISSING | None = MISSING
                                                        

                                                        System-level instructions for the new session.

                                                        NewSessionResponse

                                                        Bases: AnnotatedObject

                                                        Response from creating a new session.

                                                        New sessions are idle until a state_update says otherwise.

                                                        Source code in src/aclientp/schema/v2/sessions.py
                                                        class NewSessionResponse(AnnotatedObject):
                                                            """Response from creating a new session.
                                                        
                                                            New sessions are ``idle`` until a ``state_update`` says otherwise.
                                                            """
                                                        
                                                            session_id: SessionId
                                                            """Unique identifier for the created session."""
                                                        
                                                            config_options: Sequence[SessionConfigOption] | MISSING = MISSING
                                                            """Initial session configuration options."""
                                                        
                                                            available_commands: Sequence[AvailableCommand] | MISSING = MISSING
                                                            """Initial commands the agent can execute in this session."""
                                                        

                                                        available_commands class-attribute instance-attribute

                                                        available_commands: Sequence[AvailableCommand] | MISSING = MISSING
                                                        

                                                        Initial commands the agent can execute in this session.

                                                        config_options class-attribute instance-attribute

                                                        config_options: Sequence[SessionConfigOption] | MISSING = MISSING
                                                        

                                                        Initial session configuration options.

                                                        session_id instance-attribute

                                                        session_id: SessionId
                                                        

                                                        Unique identifier for the created session.

                                                        ReplayFromStart

                                                        Bases: AnnotatedObject

                                                        Replay all retained conversation history from its first replayable entry.

                                                        Source code in src/aclientp/schema/v2/sessions.py
                                                        class ReplayFromStart(AnnotatedObject):
                                                            """Replay all retained conversation history from its first replayable entry."""
                                                        
                                                            type: Literal["start"] = Field(default="start", init=False)
                                                        

                                                        ResumeSessionRequest

                                                        Bases: AnnotatedObject

                                                        Request parameters for resuming an existing session.

                                                        Source code in src/aclientp/schema/v2/sessions.py
                                                        class ResumeSessionRequest(AnnotatedObject):
                                                            """Request parameters for resuming an existing session."""
                                                        
                                                            session_id: SessionId
                                                            """The ID of the session to resume."""
                                                        
                                                            cwd: AbsolutePath
                                                            """The working directory for this session. Must be an absolute path."""
                                                        
                                                            additional_directories: Sequence[AbsolutePath] | MISSING = MISSING
                                                            """Additional workspace roots to activate for this session. Each path must be absolute."""
                                                        
                                                            mcp_servers: Sequence[McpServer] | MISSING = MISSING
                                                            """List of MCP servers to connect to for this session."""
                                                        
                                                            replay_from: ReplayFrom | MISSING | None = MISSING
                                                            """Inclusive cursor describing where conversation replay should begin."""
                                                        
                                                            system_prompt: SystemPrompt | MISSING | None = MISSING
                                                            """System-level instructions for the resumed session."""
                                                        
                                                            config_options: Sequence[InitialSessionConfigOption] | MISSING = MISSING
                                                            """Initial values for the session's config options."""
                                                        

                                                        additional_directories class-attribute instance-attribute

                                                        additional_directories: Sequence[AbsolutePath] | MISSING = MISSING
                                                        

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

                                                        config_options class-attribute instance-attribute

                                                        config_options: Sequence[InitialSessionConfigOption] | MISSING = MISSING
                                                        

                                                        Initial values for the session's config options.

                                                        cwd instance-attribute

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

                                                        mcp_servers class-attribute instance-attribute

                                                        mcp_servers: Sequence[McpServer] | MISSING = MISSING
                                                        

                                                        List of MCP servers to connect to for this session.

                                                        replay_from class-attribute instance-attribute

                                                        replay_from: ReplayFrom | MISSING | None = MISSING
                                                        

                                                        Inclusive cursor describing where conversation replay should begin.

                                                        session_id instance-attribute

                                                        session_id: SessionId
                                                        

                                                        The ID of the session to resume.

                                                        system_prompt class-attribute instance-attribute

                                                        system_prompt: SystemPrompt | MISSING | None = MISSING
                                                        

                                                        System-level instructions for the resumed session.

                                                        ResumeSessionResponse

                                                        Bases: AnnotatedObject

                                                        Response from resuming an existing session.

                                                        The agent sends a current state_update after any requested replay (ended by replay_complete) and before this response.

                                                        Source code in src/aclientp/schema/v2/sessions.py
                                                        class ResumeSessionResponse(AnnotatedObject):
                                                            """Response from resuming an existing session.
                                                        
                                                            The agent sends a current ``state_update`` after any requested replay (ended by
                                                            ``replay_complete``) and before this response.
                                                            """
                                                        
                                                            config_options: Sequence[SessionConfigOption] | MISSING = MISSING
                                                            """Initial session configuration options."""
                                                        
                                                            available_commands: Sequence[AvailableCommand] | MISSING = MISSING
                                                            """Initial commands the agent can execute in this session."""
                                                        

                                                        available_commands class-attribute instance-attribute

                                                        available_commands: Sequence[AvailableCommand] | MISSING = MISSING
                                                        

                                                        Initial commands the agent can execute in this session.

                                                        config_options class-attribute instance-attribute

                                                        config_options: Sequence[SessionConfigOption] | MISSING = MISSING
                                                        

                                                        Initial session configuration options.

                                                        SessionInfo

                                                        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.

                                                        SessionOptionsRequest

                                                        Bases: AnnotatedObject

                                                        UNSTABLE: Parameters of session/options.

                                                        Returns the config options a session would start with, without creating or resuming one.

                                                        Source code in src/aclientp/schema/v2/sessions.py
                                                        class SessionOptionsRequest(AnnotatedObject):
                                                            """**UNSTABLE**: Parameters of ``session/options``.
                                                        
                                                            Returns the config options a session would start with, without creating or resuming
                                                            one.
                                                            """
                                                        
                                                            cwd: AbsolutePath
                                                            """The working directory to resolve options for. Must be an absolute path."""
                                                        
                                                            additional_directories: Sequence[AbsolutePath] | MISSING = MISSING
                                                            """Additional workspace roots to resolve options for. Each path must be absolute."""
                                                        
                                                            session_id: SessionId | MISSING | None = MISSING
                                                            """The session to resolve options for."""
                                                        

                                                        additional_directories class-attribute instance-attribute

                                                        additional_directories: Sequence[AbsolutePath] | MISSING = MISSING
                                                        

                                                        Additional workspace roots to resolve options for. Each path must be absolute.

                                                        cwd instance-attribute

                                                        The working directory to resolve options for. Must be an absolute path.

                                                        session_id class-attribute instance-attribute

                                                        session_id: SessionId | MISSING | None = MISSING
                                                        

                                                        The session to resolve options for.

                                                        SessionOptionsResponse

                                                        Bases: AnnotatedObject

                                                        UNSTABLE: Response from session/options.

                                                        Source code in src/aclientp/schema/v2/sessions.py
                                                        class SessionOptionsResponse(AnnotatedObject):
                                                            """**UNSTABLE**: Response from ``session/options``."""
                                                        
                                                            config_options: Sequence[SessionConfigOption] | MISSING = MISSING
                                                            """The config options the session would start with, with the same rules as on
                                                            ``NewSessionResponse``."""
                                                        
                                                            available_commands: Sequence[AvailableCommand] | MISSING = MISSING
                                                            """Commands the Agent knows the session would have."""
                                                        

                                                        available_commands class-attribute instance-attribute

                                                        available_commands: Sequence[AvailableCommand] | MISSING = MISSING
                                                        

                                                        Commands the Agent knows the session would have.

                                                        config_options class-attribute instance-attribute

                                                        config_options: Sequence[SessionConfigOption] | MISSING = MISSING
                                                        

                                                        The config options the session would start with, with the same rules as on NewSessionResponse.

                                                        SessionStatusRequest

                                                        Bases: AnnotatedObject

                                                        UNSTABLE: Request parameters for checking the status of a session.

                                                        Source code in src/aclientp/schema/v2/sessions.py
                                                        class SessionStatusRequest(AnnotatedObject):
                                                            """**UNSTABLE**: Request parameters for checking the status of a session."""
                                                        
                                                            session_id: SessionId
                                                            """The ID of the session to check."""
                                                        

                                                        session_id instance-attribute

                                                        session_id: SessionId
                                                        

                                                        The ID of the session to check.

                                                        SessionStatusResponse

                                                        Bases: AnnotatedObject

                                                        UNSTABLE: Response from checking the status of a session.

                                                        Source code in src/aclientp/schema/v2/sessions.py
                                                        class SessionStatusResponse(AnnotatedObject):
                                                            """**UNSTABLE**: Response from checking the status of a session."""
                                                        
                                                            status: SessionStatus
                                                            """Whether the Agent has the session in memory."""
                                                        
                                                            state: StateUpdate | MISSING | None = MISSING
                                                            """The session's current foreground state, as the same snapshot the Agent sends in
                                                            ``state_update`` notifications."""
                                                        

                                                        state class-attribute instance-attribute

                                                        state: StateUpdate | MISSING | None = MISSING
                                                        

                                                        The session's current foreground state, as the same snapshot the Agent sends in state_update notifications.

                                                        status instance-attribute

                                                        status: SessionStatus
                                                        

                                                        Whether the Agent has the session in memory.

                                                        SetSessionTitleRequest

                                                        Bases: AnnotatedObject

                                                        UNSTABLE: Request parameters for setting the title of a session.

                                                        Source code in src/aclientp/schema/v2/sessions.py
                                                        class SetSessionTitleRequest(AnnotatedObject):
                                                            """**UNSTABLE**: Request parameters for setting the title of a session."""
                                                        
                                                            session_id: SessionId
                                                            """The ID of the session to retitle."""
                                                        
                                                            title: str
                                                            """The new title for the session."""
                                                        

                                                        session_id instance-attribute

                                                        session_id: SessionId
                                                        

                                                        The ID of the session to retitle.

                                                        title instance-attribute

                                                        title: str
                                                        

                                                        The new title for the session.

                                                        SetSessionTitleResponse

                                                        Bases: AnnotatedObject

                                                        UNSTABLE: Response from setting the title of a session.

                                                        Source code in src/aclientp/schema/v2/sessions.py
                                                        class SetSessionTitleResponse(AnnotatedObject):
                                                            """**UNSTABLE**: Response from setting the title of a session."""
                                                        
                                                            title: str
                                                            """The title the Agent stored."""
                                                        

                                                        title instance-attribute

                                                        title: str
                                                        

                                                        The title the Agent stored.

                                                        SystemPrompt

                                                        Bases: AnnotatedObject

                                                        Client-provided system-level instructions for a session.

                                                        Only sent when the agent advertises session.systemPrompt; agents that cannot apply it return an error instead of creating the session.

                                                        Source code in src/aclientp/schema/v2/sessions.py
                                                        class SystemPrompt(AnnotatedObject):
                                                            """Client-provided system-level instructions for a session.
                                                        
                                                            Only sent when the agent advertises ``session.systemPrompt``; agents that cannot apply
                                                            it return an error instead of creating the session.
                                                            """
                                                        
                                                            mode: SystemPromptMode
                                                            """How the Agent combines ``content`` with its own instructions."""
                                                        
                                                            content: Sequence[ContentBlock] = Field(min_length=1)
                                                            """The system prompt content; at least one block."""
                                                        

                                                        content class-attribute instance-attribute

                                                        content: Sequence[ContentBlock] = Field(min_length=1)
                                                        

                                                        The system prompt content; at least one block.

                                                        mode instance-attribute

                                                        How the Agent combines content with its own instructions.

                                                        UnarchiveSessionRequest

                                                        Bases: AnnotatedObject

                                                        UNSTABLE: Request parameters for unarchiving a session.

                                                        Source code in src/aclientp/schema/v2/sessions.py
                                                        class UnarchiveSessionRequest(AnnotatedObject):
                                                            """**UNSTABLE**: Request parameters for unarchiving a session."""
                                                        
                                                            session_id: SessionId
                                                            """The ID of the session to unarchive."""
                                                        

                                                        session_id instance-attribute

                                                        session_id: SessionId
                                                        

                                                        The ID of the session to unarchive.

                                                        UnarchiveSessionResponse

                                                        Bases: AnnotatedObject

                                                        UNSTABLE: Response from unarchiving a session.

                                                        Source code in src/aclientp/schema/v2/sessions.py
                                                        class UnarchiveSessionResponse(AnnotatedObject):
                                                            """**UNSTABLE**: Response from unarchiving a session."""
                                                        

                                                        UnknownReplayFrom

                                                        Bases: Unknown

                                                        A custom or future replay cursor; type values starting with _ are extensions.

                                                        Source code in src/aclientp/schema/v2/sessions.py
                                                        class UnknownReplayFrom(Unknown):
                                                            """A custom or future replay cursor; ``type`` values starting with ``_`` are extensions."""
                                                        
                                                            type: str
                                                            """The cursor kind."""
                                                        

                                                        type instance-attribute

                                                        type: str
                                                        

                                                        The cursor kind.