Skip to content

CloseSessionRequest

Base classes

Name Children Inherits
Request
aclientp.schema.base
Base request model.

⋔ Inheritance diagram

graph TD
  95970860886224["client_requests.CloseSessionRequest"]
  95970858197488["base.Request"]
  95970862258240["base.AnnotatedObject"]
  95970862254416["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970858197488 --> 95970860886224
  95970862258240 --> 95970858197488
  95970862254416 --> 95970862258240
  95970851503232 --> 95970862254416
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: Request

Request parameters for closing an active session.

The agent must cancel any ongoing work related to the session (treat it as if session/cancel was called) and then free up any resources associated with the session.

Only available if the Agent supports the session.close capability.

Source code in src/aclientp/schema/client_requests.py
class CloseSessionRequest(Request):
    """Request parameters for closing an active session.

    The agent **must** cancel any ongoing work related to the session
    (treat it as if ``session/cancel`` was called) and then free up any resources
    associated with the session.

    Only available if the Agent supports the ``session.close`` capability.
    """

    session_id: str
    """The ID of the session to close."""

session_id instance-attribute

session_id: str

The ID of the session to close.

:fa-brands-github: Show source on GitHub