graflo.architecture.schema.context.type_sheet¶
Type sheet: a schema as a compact, closed-world vocabulary for a language model.
One line per vertex type and per edge, each followed by its typed properties. The output is byte-deterministic — the same schema always renders the same bytes, whatever order its elements were declared in — so a prompt built around it keeps hitting response and prefix caches.
Classes¶
Functions:¶
render_type_sheet(schema)
¶
Render schema as a type sheet.
The notation legend comes first, then vertices sorted by name, then edges
sorted by (source, target, relation). Properties keep their declared
order; minted key properties are left out, since no text supplies them.
The sheet ends with the closed-world sentence: a type, relation or
property absent from it does not exist.