Skip to content

ListSessionsResponse

Base classes

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

⋔ Inheritance diagram

graph TD
  95970859853392["agent_responses.ListSessionsResponse"]
  95970861210848["base.Response"]
  95970862258240["base.AnnotatedObject"]
  95970862254416["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970861210848 --> 95970859853392
  95970862258240 --> 95970861210848
  95970862254416 --> 95970862258240
  95970851503232 --> 95970862254416
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: Response

Response from listing sessions.

Source code in src/aclientp/schema/agent_responses.py
class ListSessionsResponse(Response):
    """Response from listing sessions."""

    next_cursor: str | None = None
    """Opaque cursor token. If present, pass this in the next request's cursor parameter
    to fetch the next page. If absent, there are no more results."""

    sessions: Sequence[SessionInfo] = Field(default_factory=list)
    """Array of session information objects."""

next_cursor class-attribute instance-attribute

next_cursor: str | None = None

Opaque cursor token. If present, pass this in the next request's cursor parameter to fetch the next page. If absent, there are no more results.

sessions class-attribute instance-attribute

sessions: Sequence[SessionInfo] = Field(default_factory=list)

Array of session information objects.

:fa-brands-github: Show source on GitHub