Skip to main content

compact_schema

Function compact_schema 

Source
pub fn compact_schema(schema: Value) -> Value
Expand description

schema as sent to the model: the same parameters, without what schema generators add for other readers — the root $schema and title, "default": null, Rust integer formats, and per-variant descriptions on an enum of string constants (which becomes a plain enum).

Only what the model reads changes; inputs are still parsed against the tool’s own types.