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, SkillManifest, SkillToolDefinition } from '@signalwire/sdk';
2
3class WeatherSkill extends SkillBase {
4 constructor(config?: Record<string, unknown>) {
5 super('weather', config);
6 }
7
8 getManifest(): SkillManifest {
9 return { name: 'weather', description: 'Provides weather information', version: '1.0.0' };
10 }
11
12 getTools(): SkillToolDefinition[] {
13 return [];
14 }
15
16 getHints(): string[] {
17 return ['weather', 'temperature', 'forecast', 'humidity', 'wind speed'];
18 }
19}