Skip to content

SessionCapabilities

Base classes

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

⋔ Inheritance diagram

graph TD
  95970862492704["capabilities.SessionCapabilities"]
  95970862258240["base.AnnotatedObject"]
  95970862254416["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970862258240 --> 95970862492704
  95970862254416 --> 95970862258240
  95970851503232 --> 95970862254416
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: AnnotatedObject

Session capabilities supported by the agent.

As a baseline, all Agents MUST support session/new, session/prompt, session/cancel, and session/update.

Optionally, they MAY support other session methods and notifications by specifying additional capabilities.

Note: session/load is still handled by the top-level load_session capability. This will be unified in future versions of the protocol.

See protocol docs: Session Capabilities

Source code in src/aclientp/schema/capabilities.py
class SessionCapabilities(AnnotatedObject):
    """Session capabilities supported by the agent.

    As a baseline, all Agents **MUST** support `session/new`, `session/prompt`,
    `session/cancel`, and `session/update`.

    Optionally, they **MAY** support other session methods and notifications
    by specifying additional capabilities.

    Note: `session/load` is still handled by the top-level `load_session` capability.
    This will be unified in future versions of the protocol.

    See protocol docs: [Session Capabilities](https://agentclientprotocol.com/protocol/initialization#session-capabilities)
    """

    list: SessionListCapabilities | None = None
    """Whether the agent supports `session/list`."""

    delete: SessionDeleteCapabilities | None = None
    """Whether the agent supports ``session/delete``."""

    additional_directories: SessionAdditionalDirectoriesCapabilities | None = None
    """Whether the agent supports ``additionalDirectories`` on session lifecycle requests."""

    system_prompt: SessionSystemPromptCapabilities | None = None
    """Whether the agent supports ``systemPrompt`` on session lifecycle requests."""

    resume: SessionResumeCapabilities | None = None
    """Whether the agent supports `session/resume`."""

    close: SessionCloseCapabilities | None = None
    """Whether the agent supports `session/close`."""

    fork: SessionForkCapabilities | None = None
    """**UNSTABLE**: Whether the agent supports `session/fork`."""

    archive: SessionArchiveCapabilities | None = None
    """**UNSTABLE**: Whether the agent supports ``session/archive`` and ``session/unarchive``."""

    status: SessionStatusCapabilities | None = None
    """**UNSTABLE**: Whether the agent supports ``session/status``."""

    options: SessionOptionsCapabilities | None = None
    """**UNSTABLE**: Whether the agent supports ``session/options``."""

    title: SessionTitleCapabilities | None = None
    """**UNSTABLE**: Whether the agent supports ``session/set_title``."""

additional_directories class-attribute instance-attribute

additional_directories: SessionAdditionalDirectoriesCapabilities | None = None

Whether the agent supports additionalDirectories on session lifecycle requests.

archive class-attribute instance-attribute

archive: SessionArchiveCapabilities | None = None

UNSTABLE: Whether the agent supports session/archive and session/unarchive.

close class-attribute instance-attribute

close: SessionCloseCapabilities | None = None

Whether the agent supports session/close.

delete class-attribute instance-attribute

delete: SessionDeleteCapabilities | None = None

Whether the agent supports session/delete.

fork class-attribute instance-attribute

fork: SessionForkCapabilities | None = None

UNSTABLE: Whether the agent supports session/fork.

list class-attribute instance-attribute

list: SessionListCapabilities | None = None

Whether the agent supports session/list.

options class-attribute instance-attribute

options: SessionOptionsCapabilities | None = None

UNSTABLE: Whether the agent supports session/options.

resume class-attribute instance-attribute

resume: SessionResumeCapabilities | None = None

Whether the agent supports session/resume.

status class-attribute instance-attribute

status: SessionStatusCapabilities | None = None

UNSTABLE: Whether the agent supports session/status.

system_prompt class-attribute instance-attribute

system_prompt: SessionSystemPromptCapabilities | None = None

Whether the agent supports systemPrompt on session lifecycle requests.

title class-attribute instance-attribute

title: SessionTitleCapabilities | None = None

UNSTABLE: Whether the agent supports session/set_title.

:fa-brands-github: Show source on GitHub