Skip to content

NewSessionResponse

Base classes

Name Children Inherits
AnnotatedObject
aclientp.schema.v2.base
A v2 object with the ``_meta`` extension point.

⋔ Inheritance diagram

graph TD
  95970867832800["sessions.NewSessionResponse"]
  95970868359040["base.AnnotatedObject"]
  95970855946400["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970868359040 --> 95970867832800
  95970855946400 --> 95970868359040
  95970851503232 --> 95970855946400
  125067848591872 --> 95970851503232

🛈 DocStrings

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.

:fa-brands-github: Show source on GitHub