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

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