| 
    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, bool required) | |
| Initialize the field information.   | |
  Public Member Functions inherited from formatron.schemas.schema.FieldInfo | |
Protected Attributes | |
| _annotation | |
| _required | |
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 18 of file json_schema.py.
| formatron.schemas.json_schema.FieldInfo.__init__ | ( | self, | |
| typing.Type | annotation, | ||
| bool | required ) | 
Initialize the field information.
| annotation | The type annotation of the field. | 
| required | Whether the field is required for the schema. | 
Definition at line 28 of file json_schema.py.
| typing.Type[typing.Any] | None formatron.schemas.json_schema.FieldInfo.annotation | ( | self | ) | 
Get the type annotation of the field.
Reimplemented from formatron.schemas.schema.FieldInfo.
Definition at line 43 of file json_schema.py.
| bool formatron.schemas.json_schema.FieldInfo.required | ( | self | ) | 
Check if the field is required for the schema.
Reimplemented from formatron.schemas.schema.FieldInfo.
Definition at line 59 of file json_schema.py.
      
  | 
  protected | 
Definition at line 29 of file json_schema.py.
      
  | 
  protected | 
Definition at line 30 of file json_schema.py.