addHints

View as MarkdownOpen in Claude

Add multiple speech recognition hints at once.

Parameters

hints
string[]Required

An array of words or phrases.

Returns

AgentBase — Returns this for method chaining.

Example

1import { AgentBase } from '@signalwire/sdk';
2
3const agent = new AgentBase({ name: 'support', route: '/support' });
4agent.setPromptText('You are a helpful assistant.');
5agent.addHints(['SWML', 'SWAIG', 'FreeSWITCH']);
6await agent.serve();