Skip to main content

schema_to_clap_args

Function schema_to_clap_args 

Source
pub fn schema_to_clap_args(
    schema: &Value,
) -> Result<SchemaArgs, SchemaParserError>
Expand description

Translate a JSON Schema properties map into a SchemaArgs result.

Each schema property becomes one --<name> flag with:

  • help set to the property’s x-llm-description or description field
  • required set when the property appears in the schema’s required array
  • enum variants and boolean pairs deferred to later tasks

§Arguments

  • schema — JSON Schema object (may have "properties" key)

Returns empty SchemaArgs for schemas without properties.