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.
Parameters
hint
The hint string to match against ASR output.
pattern
Regular expression pattern to match.
replace
Replacement text to substitute when the pattern matches.
ignore_case
Whether to ignore case when matching the pattern.
Returns
AgentBase — Returns self for method chaining.