Skip to content

Annotations

Base classes

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

⋔ Inheritance diagram

graph TD
  95970868564064["common.Annotations"]
  95970868359040["base.AnnotatedObject"]
  95970855946400["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970868359040 --> 95970868564064
  95970855946400 --> 95970868359040
  95970851503232 --> 95970855946400
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: AnnotatedObject

Hints for the client on how an object is used or displayed.

Source code in src/aclientp/schema/v2/common.py
class Annotations(AnnotatedObject):
    """Hints for the client on how an object is used or displayed."""

    audience: Sequence[Role] | MISSING | None = MISSING
    """Intended recipients, such as the user or the assistant."""

    last_modified: str | MISSING | None = MISSING
    """When the underlying resource was last modified (ISO 8601)."""

    priority: float | MISSING | None = Field(default=MISSING, ge=0, le=1)
    """Importance from 0 (least) to 1 (most important)."""

audience class-attribute instance-attribute

audience: Sequence[Role] | MISSING | None = MISSING

Intended recipients, such as the user or the assistant.

last_modified class-attribute instance-attribute

last_modified: str | MISSING | None = MISSING

When the underlying resource was last modified (ISO 8601).

priority class-attribute instance-attribute

priority: float | MISSING | None = Field(default=MISSING, ge=0, le=1)

Importance from 0 (least) to 1 (most important).

:fa-brands-github: Show source on GitHub