| 
    Formatron v0.4.11
     
     
    
   Formatron empowers everyone to control the output format of language models with minimal overhead. 
   | 
 
A module that implements the Schema interface using pydantic. More...
Classes | |
| class | ClassSchema | 
| A wrapper for pydantic BaseModel that implements the Schema interface.  More... | |
| class | FieldInfo | 
| A wrapper for pydantic FieldInfo.  More... | |
Functions | |
| CallableT | callable_schema (CallableT func, *, ConfigDict config=None, bool validate_return=False) | 
| A decorator that wraps pydantic's validate_call.   | |
Variables | |
| CallableT = typing.TypeVar('CallableT', bound=typing.Callable) | |
A module that implements the Schema interface using pydantic.
| CallableT formatron.schemas.pydantic.callable_schema | ( | CallableT | func, | 
| * | , | ||
| ConfigDict | config = None, | ||
| bool | validate_return = False ) | 
A decorator that wraps pydantic's validate_call.
The decorated callable also implements the Schema interface.
| func | The function to decorate. | 
| config | The pydantic configuration of validate_call. | 
| validate_return | Whether to validate the return value. | 
Definition at line 123 of file pydantic.py.
| formatron.schemas.pydantic.CallableT = typing.TypeVar('CallableT', bound=typing.Callable) | 
Definition at line 109 of file pydantic.py.