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

from signalwire import AgentBase
agent = AgentBase(name="support", route="/support")
agent.set_prompt_text("You are a helpful assistant.")
agent.add_hints(["SWML", "SWAIG", "FreeSWITCH"])
agent.serve()