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

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