Skip to content

ElicitationSchema

Base classes

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

⋔ Inheritance diagram

graph TD
  95970859427216["elicitation.ElicitationSchema"]
  95970862258240["base.AnnotatedObject"]
  95970862254416["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970862258240 --> 95970859427216
  95970862254416 --> 95970862258240
  95970851503232 --> 95970862254416
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: AnnotatedObject

Type-safe elicitation schema for requesting structured user input.

This represents a JSON Schema object with primitive-typed properties, as required by the elicitation specification.

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

    This represents a JSON Schema object with primitive-typed properties,
    as required by the elicitation specification.
    """

    type: Literal["object"] = "object"
    """Type discriminator. Always ``"object"``."""

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

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

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

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

description class-attribute instance-attribute

description: str | None = None

Optional description of what this schema represents.

properties class-attribute instance-attribute

properties: dict[str, ElicitationPropertySchema] = Field(default_factory=dict)

Property definitions (must be primitive types).

required class-attribute instance-attribute

required: Sequence[str] | None = None

List of required property names.

title class-attribute instance-attribute

title: str | None = None

Optional title for the schema.

type class-attribute instance-attribute

type: Literal['object'] = 'object'

Type discriminator. Always "object".

:fa-brands-github: Show source on GitHub