For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Log inSign up
Support
GuidesReference
GuidesReference
    • Core
      • Overview
    • Agents
      • Overview
      • AgentBase
      • AgentServer
      • Configuration
        • AuthHandler
        • ConfigLoader
        • Environment Variables
        • Logging
        • PromptManager
          • addSection
          • addSubsection
          • addToSection
          • getPomBuilder
          • getPostPrompt
          • getPrompt
          • hasSection
          • setPostPrompt
          • setPromptText
        • SchemaUtils
        • ServerlessAdapter
        • SessionManager
        • SslConfig
      • ContextBuilder
      • DataMap
      • FunctionResult
      • Helper Functions & Utilities
      • LiveWire
      • PomBuilder
      • Prefabs
      • SkillBase
      • SkillManager
      • SkillRegistry
      • Skills
      • SwaigFunction
      • SwmlBuilder
      • SWMLService
    • RELAY
      • Overview
      • Actions
      • Call
      • Constants
      • Events
      • Message
      • RelayClient
      • RelayError
    • REST Client
      • Overview
      • Addresses
      • Calling
      • ChatResource
      • Compat
      • Datasphere
      • Fabric
      • ImportedNumbersResource
      • Logs
      • LookupResource
      • MFA
      • Number Groups
      • Phone Numbers
      • Project
      • PubSubResource
      • Queues
      • Recordings
      • Registry
      • RestClient
      • RestError
      • Short Codes
      • SIP Profile
      • Verified Callers
      • Video
LogoLogoSignalWire Docs
Log inSign up
Support
On this page
  • Parameters
  • Returns
  • Example
AgentsConfigurationPromptManager

addToSection

|View as Markdown|Open in Claude|
Was this page helpful?
Edit this page
Previous

getPomBuilder

Next
Built with

Append body text or bullets to an existing POM section, creating it if absent.

Parameters

title
stringRequired

The section heading to append to.

opts
object

Content to add.

opts.body
string

Body text to append.

opts.bullet
string

A single bullet point to add.

opts.bullets
string[]

Multiple bullet points to add.

Returns

void

Example

1import { PromptManager } from '@signalwire/sdk';
2
3const pm = new PromptManager();
4pm.addSection('Rules', { bullets: ['Be concise'] });
5pm.addToSection('Rules', { bullet: 'Be polite' });
6pm.addToSection('Rules', { bullets: ['Never guess', 'Stay on topic'] });
7console.log(pm.getPrompt());