Skip to content

ElicitationSchema

Base classes

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

⋔ Inheritance diagram

graph TD
  95970868255328["elicitation.ElicitationSchema"]
  95970868359040["base.AnnotatedObject"]
  95970855946400["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970868359040 --> 95970868255328
  95970855946400 --> 95970868359040
  95970851503232 --> 95970855946400
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: AnnotatedObject

Type-safe elicitation schema for requesting structured user input.

Source code in src/aclientp/schema/v2/elicitation.py
class ElicitationSchema(AnnotatedObject):
    """Type-safe elicitation schema for requesting structured user input."""

    type: ElicitationSchemaType = Field(default="object", init=False)
    """Type discriminator. Always ``"object"``. Any other value is rejected."""

    title: str | MISSING | None = MISSING
    """Optional title for the schema."""

    properties: dict[str, ElicitationPropertySchema]
    """Property definitions (must be primitive types)."""

    required: Sequence[str] | MISSING | None = MISSING
    """List of required property names."""

    description: str | MISSING | None = MISSING
    """Optional description of what this schema represents."""

description class-attribute instance-attribute

description: str | MISSING | None = MISSING

Optional description of what this schema represents.

properties instance-attribute

properties: dict[str, ElicitationPropertySchema]

Property definitions (must be primitive types).

required class-attribute instance-attribute

required: Sequence[str] | MISSING | None = MISSING

List of required property names.

title class-attribute instance-attribute

title: str | MISSING | None = MISSING

Optional title for the schema.

type class-attribute instance-attribute

type: ElicitationSchemaType = Field(default='object', init=False)

Type discriminator. Always "object". Any other value is rejected.

:fa-brands-github: Show source on GitHub