Skip to content

SessionInfoUpdate

Base classes

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

⋔ Inheritance diagram

graph TD
  95970858331152["session_updates.SessionInfoUpdate"]
  95970862258240["base.AnnotatedObject"]
  95970862254416["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970862258240 --> 95970858331152
  95970862254416 --> 95970862258240
  95970851503232 --> 95970862254416
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: AnnotatedObject

Incremental update to session metadata.

Used to notify clients of changes to session info (title, timestamps) without requiring a full session list refresh.

Fields that are None are not changed. To update a field, set it to a value.

Source code in src/aclientp/schema/session_updates.py
class SessionInfoUpdate(AnnotatedObject):
    """Incremental update to session metadata.

    Used to notify clients of changes to session info (title, timestamps)
    without requiring a full session list refresh.

    Fields that are None are not changed. To update a field, set it to a value.
    """

    session_update: Literal["session_info_update"] = Field(
        default="session_info_update", init=False
    )

    title: str | None = None
    """New title for the session, or None to leave unchanged."""

    updated_at: str | None = None
    """New ISO 8601 timestamp, or None to leave unchanged."""

title class-attribute instance-attribute

title: str | None = None

New title for the session, or None to leave unchanged.

updated_at class-attribute instance-attribute

updated_at: str | None = None

New ISO 8601 timestamp, or None to leave unchanged.

:fa-brands-github: Show source on GitHub