Clean Whitespace • Rust AI Agent SDK

clean_whitespace: Clean and normalize whitespace in a string

clean_whitespace

Function

</div>

This function is defined in the parse_utils module.

Clean and normalize whitespace in a string

Signature

python
def clean_whitespace(text: &str) -> String

Parameters

ParamField &str

No description available.

Returns

ResponseField String

The result of the operation.

Uses

  • split_whitespace
  • join

Source

View on GitHub

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