AgentsSkillBase

get_hints

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.

Returns

list[str] — Words or phrases to boost (default: empty list).

Example

1from signalwire.core.skill_base import SkillBase
2
3class WeatherSkill(SkillBase):
4 SKILL_NAME = "weather"
5 SKILL_DESCRIPTION = "Provides weather information"
6
7 def get_hints(self):
8 return ["weather", "temperature", "forecast", "humidity", "wind speed"]
9
10 def setup(self) -> bool:
11 return True
12
13 def register_tools(self):
14 pass