⚙️ How It Works
Input Parameters
TextToBeSanitized (Text) → Raw input text to be cleaned or normalized.
SanitizerInstructions (Text) → Optional instructions to guide the agent (e.g., "generate slug", "remove accents", "clean HTML").
Agent Task Flow
Prepares the text (remove HTML, trim spaces, normalize accents).
Passes text and instructions to the AI AgentTask.
Returns a cleaned and normalized text response.
Output
Response (Text) → Sanitized and normalized text generated by the agent.
🎯 Use Cases
Cleaning and standardizing user-generated content before saving it to the database.
Removing HTML/formatting from copy-pasted text.
Generating consistent slugs for URLs.
Normalizing data before validation (e.g., emails, identifiers, names).
Preparing text for comparison or search.