Expand description
Prompt hardening utilities.
Functionsยง
- truncate_
for_ prompt - Truncate a string for safe embedding into LLM prompts.
- wrap_
untrusted - Wrap untrusted text in explicit XML-like tags to make the security boundary obvious to the model.
Prompt hardening utilities.