setPromptText

View as MarkdownOpen in Claude

Set the raw prompt text, bypassing POM rendering. When raw text is set, getPrompt() returns it directly instead of rendering POM sections.

Parameters

text
stringRequired

The raw prompt string.

Returns

void

Example

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