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.
Pattern hint configuration object with the following fields:
Descriptive label for the hint (surfaced to the ASR alongside the pattern).
Regular expression pattern to match.
Replacement text to substitute when the pattern matches.
Whether to ignore case when matching the pattern.
AgentBase — Returns this for method chaining.