Formatron v0.4.9
Formatron empowers everyone to control the output format of language models with minimal overhead.
|
Public Member Functions | |
__init__ (self, typing.Type annotation) | |
Initialize the field information. | |
Public Member Functions inherited from formatron.schemas.schema.FieldInfo |
Protected Attributes | |
_annotation | |
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. | |
Definition at line 14 of file dict_inference.py.
formatron.schemas.dict_inference.FieldInfo.__init__ | ( | self, | |
typing.Type | annotation ) |
Initialize the field information.
annotation | The type annotation of the field. |
Definition at line 23 of file dict_inference.py.
typing.Type[typing.Any] | None formatron.schemas.dict_inference.FieldInfo.annotation | ( | self | ) |
Get the type annotation of the field.
Reimplemented from formatron.schemas.schema.FieldInfo.
Definition at line 37 of file dict_inference.py.
bool formatron.schemas.dict_inference.FieldInfo.required | ( | self | ) |
Check if the field is required for the schema.
Reimplemented from formatron.schemas.schema.FieldInfo.
Definition at line 53 of file dict_inference.py.
|
protected |
Definition at line 24 of file dict_inference.py.