AgentsAgentBase

get_post_prompt

View as MarkdownOpen in Claude

Retrieve the current post-prompt text.

Parameters

None.

Returns

str | None — The post-prompt text, or None if not set.

Example

from signalwire import AgentBase
agent = AgentBase(name="support", route="/support")
agent.set_post_prompt("Summarize this call as JSON with intent, resolution, and sentiment.")
post_prompt = agent.get_post_prompt()
if post_prompt:
print(post_prompt)