Skip to navigation

getPrompt

View as MarkdownOpen in Claude

Retrieve the fully rendered main prompt text. Returns the assembled prompt string from either setPromptText() or POM sections.

Parameters

None.

Returns

string — The assembled prompt string.

Example

import { AgentBase } from '@signalwire/sdk';
const agent = new AgentBase({ name: 'support', route: '/support' });
agent.setPromptText('You are a customer support agent for Acme Corp.');
const prompt = agent.getPrompt();
console.log(prompt);