AgentsAgentBase

add_hint

View as MarkdownOpen in Claude

Add a single speech recognition hint. Hints boost the automatic speech recognition (ASR) engine’s accuracy for specific words or phrases that may otherwise be misrecognized — such as product names, technical jargon, or uncommon proper nouns.

Parameters

hint
strRequired

A word or phrase to boost recognition accuracy.

Returns

AgentBase — Returns self for method chaining.

Example

1from signalwire import AgentBase
2
3agent = AgentBase(name="support", route="/support")
4agent.set_prompt_text("You are a helpful assistant.")
5agent.add_hint("SignalWire")
6agent.serve()