Skip to content

BooleanPropertySchema

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: AnnotatedObject

Schema for boolean properties in an elicitation form.

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

    type: Literal["boolean"] = "boolean"
    """Type discriminator."""

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

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

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

default class-attribute instance-attribute

default: bool | None = None

Default value.

description class-attribute instance-attribute

description: str | None = None

Human-readable description.

title class-attribute instance-attribute

title: str | None = None

Optional title for the property.

type class-attribute instance-attribute

type: Literal['boolean'] = 'boolean'

Type discriminator.

:fa-brands-github: Show source on GitHub