Skip to content

BooleanPropertySchema

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: AnnotatedObject

Schema for boolean properties in an elicitation form.

Source code in src/aclientp/schema/v2/elicitation.py
class BooleanPropertySchema(AnnotatedObject):
    """Schema for boolean properties in an elicitation form."""

    type: Literal["boolean"] = Field(default="boolean", init=False)

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

    description: str | MISSING | None = MISSING
    """Human-readable description."""

    default: bool | MISSING | None = MISSING
    """Default value."""

default class-attribute instance-attribute

default: bool | MISSING | None = MISSING

Default value.

description class-attribute instance-attribute

description: str | MISSING | None = MISSING

Human-readable description.

title class-attribute instance-attribute

title: str | MISSING | None = MISSING

Optional title for the property.

:fa-brands-github: Show source on GitHub