|
Formatron v0.4.9
Formatron empowers everyone to control the output format of language models with minimal overhead.
|
An abstract field info that describes a data field in a schema. More...
Properties | |
| typing.Type[typing.Any]|None | annotation (self) |
| Get the type annotation of the field. | |
| bool | required (self) |
| Check if the field is required for the schema. | |
An abstract field info that describes a data field in a schema.
| typing.Type[typing.Any] | None formatron.schemas.schema.FieldInfo.annotation | ( | self | ) |
Get the type annotation of the field.
Reimplemented in formatron.schemas.dict_inference.FieldInfo, formatron.schemas.json_schema.FieldInfo, and formatron.schemas.pydantic.FieldInfo.
| bool formatron.schemas.schema.FieldInfo.required | ( | self | ) |
Check if the field is required for the schema.
Reimplemented in formatron.schemas.dict_inference.FieldInfo, formatron.schemas.json_schema.FieldInfo, and formatron.schemas.pydantic.FieldInfo.