AgentsAgentBase

add_hints

View as MarkdownOpen in Claude

Add multiple speech recognition hints at once.

Parameters

hints
list[str]Required

A list of words or phrases.

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_hints(["SWML", "SWAIG", "FreeSWITCH"])
6agent.serve()