Schema Models
These classes define the structure of a generated schema and provide utilities for converting it to a Pydantic model.
FieldType
Bases: StrEnum
FieldDef
Bases: BaseModel
Definition of a single extraction field.
Attributes:
| Name | Type | Description |
|---|---|---|
type_ |
FieldType
|
Data type — one of |
enum_name |
str | None
|
Name for the dynamically created enum type (required when |
enum_values |
list[str]
|
Allowed values when |
description |
str
|
Human-readable description of what this field captures. |
NamedFieldDef
SchemaFields
Bases: BaseModel
Container for the full set of named fields in a generated schema.