setPostPrompt

View as MarkdownOpen in Claude

Set the post-prompt text appended after the main prompt. The post-prompt is typically used to instruct the model on how to summarize the conversation.

Parameters

text
stringRequired

The post-prompt string.

Returns

void

Example

1import { PromptManager } from '@signalwire/sdk';
2
3const pm = new PromptManager();
4pm.setPostPrompt('Summarize the conversation as a JSON object with keys: topic, resolution, sentiment.');
5console.log(pm.getPostPrompt());