Server SDKs
Build AI agents, control calls, send messages, and more
Retrieve the fully rendered main prompt text. Returns the assembled prompt string from either setPromptText() or POM sections.
setPromptText()
None.
string — The assembled prompt string.
string
1import { AgentBase } from '@signalwire/sdk';23const agent = new AgentBase({ name: 'support', route: '/support' });4agent.setPromptText('You are a customer support agent for Acme Corp.');5const prompt = agent.getPrompt();6console.log(prompt);