Formatron v0.4.9
Formatron empowers everyone to control the output format of language models with minimal overhead.
|
An abstract schema that describes some data. More...
Class Methods | |
dict[str, FieldInfo] | fields (cls) |
Get the fields of the schema. | |
"Schema" | from_json (cls, str json) |
Create a schema from a JSON string. | |
dict[str, FieldInfo] formatron.schemas.schema.Schema.fields | ( | cls | ) |
Get the fields of the schema.
Reimplemented in formatron.schemas.pydantic.ClassSchema.
"Schema" formatron.schemas.schema.Schema.from_json | ( | cls, | |
str | json ) |
Create a schema from a JSON string.
Reimplemented in formatron.schemas.pydantic.ClassSchema.