getRawPrompt

View as MarkdownOpen in Claude

Return the raw stored prompt text — whatever was passed to setPromptText() — or null if no raw text has been set. Unlike getPrompt(), which renders POM sections to Markdown, this returns the unrendered source string.

Parameters

None.

Returns

string | null — The raw stored prompt text, or null when not set.

Example

1import { PromptManager } from '@signalwire/sdk';
2
3const pm = new PromptManager();
4pm.setPromptText('You are a helpful assistant.');
5console.log(pm.getRawPrompt()); // "You are a helpful assistant."