Skip to content

NewSessionRequest

Base classes

Name Children Inherits
SessionSetupRequest
aclientp.schema.client_requests
Fields shared by the session lifecycle requests (new, load, resume, fork).

⋔ Inheritance diagram

graph TD
  95970860190032["client_requests.NewSessionRequest"]
  95970860257072["client_requests.SessionSetupRequest"]
  95970858197488["base.Request"]
  95970862258240["base.AnnotatedObject"]
  95970862254416["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970860257072 --> 95970860190032
  95970858197488 --> 95970860257072
  95970862258240 --> 95970858197488
  95970862254416 --> 95970862258240
  95970851503232 --> 95970862254416
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: SessionSetupRequest

Request parameters for creating a new session.

See protocol docs: Creating a Session

Source code in src/aclientp/schema/client_requests.py
class NewSessionRequest(SessionSetupRequest):
    """Request parameters for creating a new session.

    See protocol docs: [Creating a Session](https://agentclientprotocol.com/protocol/session-setup#creating-a-session)
    """

:fa-brands-github: Show source on GitHub