AgentsSkillBase

get_prompt_sections

View as MarkdownOpen in Claude

Return POM prompt sections for the agent. Returns an empty list when the skip_prompt parameter is True, otherwise delegates to _get_prompt_sections().

Returns

list[dict[str, Any]] — List of section dictionaries with "title" and "body" or "bullets" keys.

Override _get_prompt_sections() instead of this method so your skill automatically respects the skip_prompt configuration parameter.


_get_prompt_sections

Override this in subclasses to provide prompt sections. This is the recommended override target rather than get_prompt_sections().

Returns

list[dict[str, Any]] — List of section dictionaries (default: empty list).

Example

from signalwire.core.skill_base import SkillBase
class WeatherSkill(SkillBase):
SKILL_NAME = "weather"
SKILL_DESCRIPTION = "Provides weather information"
def _get_prompt_sections(self):
return [
{
"title": "Weather Information",
"body": "You can check weather for any location using the get_weather tool."
},
{
"title": "Weather Guidelines",
"bullets": [
"Always confirm the location before checking weather",
"Report temperature in the user's preferred units"
]
}
]
def setup(self) -> bool:
return True
def register_tools(self):
pass