Make Preset Error • Rust AI Agent SDK

make_preset_error: Create a helpful error message for invalid preset

make_preset_error

Function

</div>

This function is defined in the parse_utils module.

Create a helpful error message for invalid preset

Signature

python
def make_preset_error(
    param_name: &str,
    value: &str,
    presets: &[&str],
    url_schemes: Option<&[&str]>,
) -> String

Parameters

ParamField &str

No description available.

ParamField &str

No description available.

ParamField &[&str]

No description available.

ParamField Option&lt;&[&str]&gt;

No description available.

Returns

ResponseField String

The result of the operation.

Uses

  • suggest_similar
  • join

Source

View on GitHub

praisonai/src/parity/parse_utils.rs at line 287


Related Documentation