Skip to content

EnumOption

Base classes

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

⋔ Inheritance diagram

graph TD
  95970858444256["elicitation.EnumOption"]
  95970862258240["base.AnnotatedObject"]
  95970862254416["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970862258240 --> 95970858444256
  95970862254416 --> 95970862258240
  95970851503232 --> 95970862254416
  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/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 | None = None
    """Human-readable description."""

const instance-attribute

const: str

The constant value for this option.

description class-attribute instance-attribute

description: str | None = None

Human-readable description.

title instance-attribute

title: str

Human-readable title for this option.

:fa-brands-github: Show source on GitHub