Formatron v0.4.9
Formatron empowers everyone to control the output format of language models with minimal overhead.
|
A wrapper for pydantic FieldInfo. More...
Public Member Functions | |
__init__ (self, pydantic.fields.FieldInfo field) | |
Initialize the field information. | |
__repr__ (self) | |
__str__ (self) | |
Public Member Functions inherited from formatron.schemas.schema.FieldInfo |
Protected Attributes | |
_field | |
_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. | |
A wrapper for pydantic FieldInfo.
Definition at line 19 of file pydantic.py.
formatron.schemas.pydantic.FieldInfo.__init__ | ( | self, | |
pydantic.fields.FieldInfo | field ) |
Initialize the field information.
Definition at line 25 of file pydantic.py.
formatron.schemas.pydantic.FieldInfo.__repr__ | ( | self | ) |
Definition at line 63 of file pydantic.py.
formatron.schemas.pydantic.FieldInfo.__str__ | ( | self | ) |
Definition at line 66 of file pydantic.py.
typing.Type[typing.Any] | None formatron.schemas.pydantic.FieldInfo.annotation | ( | self | ) |
Get the type annotation of the field.
Reimplemented from formatron.schemas.schema.FieldInfo.
Definition at line 45 of file pydantic.py.
bool formatron.schemas.pydantic.FieldInfo.required | ( | self | ) |
Check if the field is required for the schema.
Reimplemented from formatron.schemas.schema.FieldInfo.
Definition at line 58 of file pydantic.py.
|
protected |
Definition at line 27 of file pydantic.py.
|
protected |
Definition at line 26 of file pydantic.py.