ontocast.prompt.llm_json_schema¶
Format-bound JSON Schema generation for canonical LLM report models.
FormatBoundJsonSchemaGenerator
¶
Bases: GenerateJsonSchema
Emit Turtle string or JSON-LD object schemas for RDF graph wire fields.
Source code in ontocast/prompt/llm_json_schema.py
format_instructions_for_model(model, fmt)
¶
LangChain-compatible format instructions using format-bound schema.
Source code in ontocast/prompt/llm_json_schema.py
schema_for_model(model, fmt)
¶
JSON Schema for model with graph fields locked to fmt wire encoding.