Skip to main content

submit_output_description

Function submit_output_description 

Source
pub fn submit_output_description(described: &str) -> String
Expand description

The submit_output tool’s description, built from the output shape resolved for the stage rather than fixed at compile time.

This is the whole mechanism by which an arbitrary format works. There is no per-format code anywhere in the engine; what makes a model produce a2ui, or a house schema, or a format invented after this function was written, is that the format label, the author’s instructions, and a literal example all arrive here and go straight to the model. described is leviath_core::describe_spec’s rendering of the resolved spec, and is empty when nothing was declared.