Formatron v0.4.2
Formatron empowers everyone to control the output format of language models with minimal overhead.
|
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. | |
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, and formatron.schemas.json_schema.FieldInfo.
bool formatron.schemas.schema.FieldInfo.required | ( | self | ) |
Check if the field is required for the schema.
Reimplemented in formatron.schemas.dict_inference.FieldInfo, and formatron.schemas.json_schema.FieldInfo.