add_pattern_hint
add_pattern_hint
add_pattern_hint
Add a hint with pattern matching and replacement. This allows you to intercept specific ASR output and rewrite it before it reaches the AI — useful for correcting consistent misrecognitions or normalizing variations.
The hint string to match against ASR output.
Regular expression pattern to match.
Replacement text to substitute when the pattern matches.
Whether to ignore case when matching the pattern.
AgentBase — Returns self for method chaining.