Json schema
convert_json_schema_to_str(json_schema)
Convert a JSON schema to a string.
Parameters
json_schema The JSON schema.
Returns
str The JSON schema converted to a string.
Raises
ValueError If the schema is not a dictionary, a string or a Pydantic class.
Source code in outlines/fsm/json_schema.py
get_schema_from_signature(fn)
Turn a function signature into a JSON schema.
Every JSON object valid to the output JSON Schema can be passed
to fn
using the ** unpacking syntax.