getPostPrompt

View as MarkdownOpen in Claude

Retrieve the current post-prompt text, if one has been set.

Parameters

None.

Returns

string | null — The post-prompt string, or null if not configured.

Example

import { AgentBase } from '@signalwire/sdk';
const agent = new AgentBase({ name: 'support', route: '/support' });
agent.setPostPrompt('Summarize this call as JSON with intent, resolution, and sentiment.');
const postPrompt = agent.getPostPrompt();
if (postPrompt) {
console.log(postPrompt);
}