Skip to content

EnumOption

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: AnnotatedObject

A titled enum option with a const value, human-readable title, and optional description.

Source code in src/aclientp/schema/v2/elicitation.py
class EnumOption(AnnotatedObject):
    """A titled enum option with a const value, human-readable title, and optional description."""

    const: str
    """The constant value for this option."""

    title: str
    """Human-readable title for this option."""

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

const instance-attribute

const: str

The constant value for this option.

description class-attribute instance-attribute

description: str | MISSING | None = MISSING

Human-readable description.

title instance-attribute

title: str

Human-readable title for this option.

:fa-brands-github: Show source on GitHub