getHints

View as MarkdownOpen in Claude

Return speech recognition hints relevant to this skill. The agent adds these to the SWML document to improve recognition accuracy.

Override this method to provide skill-specific hints.

Takes no parameters.

Returns

string[] — Words or phrases to boost (default: empty array).

Example

1import { SkillBase, type SkillToolDefinition } from '@signalwire/sdk';
2
3class WeatherSkill extends SkillBase {
4 static override SKILL_NAME = 'weather';
5 static override SKILL_DESCRIPTION = 'Provides weather information';
6
7 override getTools(): SkillToolDefinition[] { return []; }
8
9 override getHints(): string[] {
10 return ['weather', 'temperature', 'forecast', 'humidity', 'wind speed'];
11 }
12}