***

title: get_prompt_sections
slug: /reference/python/agents/skill-base/get-prompt-sections
description: Return POM prompt sections for the agent.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

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.

<Tip>
  Override `_get_prompt_sections()` instead of this method so your skill
  automatically respects the `skip_prompt` configuration parameter.
</Tip>

***

## **\_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**

```python {7-8}
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
```