***

title: get_prompt
slug: /reference/python/agents/agent-base/get-prompt
description: Retrieve the current prompt configured on the agent.
max-toc-depth: 3
---------------------

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

[set-prompt-text]: /docs/server-sdks/reference/python/agents/agent-base/set-prompt-text

Retrieve the current prompt. Returns a string if
[`set_prompt_text()`][set-prompt-text] was used, or a
POM structure (list of dictionaries) if prompt sections were used. If neither was
explicitly set, returns a default prompt: `"You are {name}, a helpful AI assistant."`.

## **Parameters**

None.

## **Returns**

`str | list[dict[str, Any]]` -- The current prompt in whatever format was configured.

## **Example**

```python {5}
from signalwire import AgentBase

agent = AgentBase(name="support", route="/support")
agent.set_prompt_text("You are a customer support agent for Acme Corp.")
prompt = agent.get_prompt()
print(prompt)
```