| Formatron v0.4.9
     
     
    Formatron empowers everyone to control the output format of language models with minimal overhead. | 
This module contains utilities for inferring schemas from dictionaries. More...
| Classes | |
| class | FieldInfo | 
| Functions | |
| Type[Any] | _infer_type (Any value) | 
| typing.Type[schemas.schema.Schema] | infer_mapping (collections.abc.Mapping[str, Any] mapping) | 
| Recursively infer a schema from a mapping. | |
This module contains utilities for inferring schemas from dictionaries.
| 
 | protected | 
Definition at line 59 of file dict_inference.py.
| typing.Type[schemas.schema.Schema] formatron.schemas.dict_inference.infer_mapping | ( | collections.abc.Mapping[str, Any] | mapping | ) | 
Recursively infer a schema from a mapping.
Types that are specially handled:
Other types are directly inferred from the type of the value with no special handling.
Definition at line 95 of file dict_inference.py.