ontocast.onto.llm_graph_payload¶
Strict LLM wire coercion for RDF graph fields on canonical Pydantic models.
Attributes¶
LLMGraphWire = Annotated[RDFGraph, BeforeValidator(coerce_llm_graph_wire)]
module-attribute
¶
llm_graph_format_ctx = ContextVar('llm_graph_format', default=LLMGraphFormat.TURTLE)
module-attribute
¶
Classes¶
Functions:¶
coerce_llm_graph_wire(value, info)
¶
Coerce LLM wire payloads to RDFGraph using validation context or ContextVar.