Skip to content

Notice

Base classes

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

⋔ Inheritance diagram

graph TD
  95970869819744["session_updates.Notice"]
  95970868359040["base.AnnotatedObject"]
  95970855946400["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970868359040 --> 95970869819744
  95970855946400 --> 95970868359040
  95970851503232 --> 95970855946400
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: AnnotatedObject

Fire-and-forget information for the user, not part of session history.

Agents must not rely on a notice being received or shown.

Source code in src/aclientp/schema/v2/session_updates.py
class Notice(AnnotatedObject):
    """Fire-and-forget information for the user, not part of session history.

    Agents must not rely on a notice being received or shown.
    """

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

    severity: NoticeSeverity
    """Presentation severity hint."""

    title: str = Field(min_length=1)
    """Plain-text title that can stand alone."""

    description: str | MISSING | None = MISSING
    """Plain-text detail or guidance."""

description class-attribute instance-attribute

description: str | MISSING | None = MISSING

Plain-text detail or guidance.

severity instance-attribute

severity: NoticeSeverity

Presentation severity hint.

title class-attribute instance-attribute

title: str = Field(min_length=1)

Plain-text title that can stand alone.

:fa-brands-github: Show source on GitHub