Skip to main content

compact_parameters

Function compact_parameters 

Source
pub fn compact_parameters(
    parameters: Value,
    mode: ToolDocumentationMode,
) -> Value
Expand description

Project a parameter schema for the given documentation mode.

Full returns the schema unchanged, Progressive keeps every parameter description but trims long tails to PROGRESSIVE_PARAMETER_DESCRIPTION_MAX_CHARS, and Minimal removes schema descriptions entirely.