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
        • SchemaUtils
          • clearCache
          • getCacheSize
          • getVerbDescription
          • getVerbNames
          • getVerbProperties
          • getVerbRequiredProperties
          • hasVerb
          • validate
          • validateVerb
        • 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
AgentsConfigurationSchemaUtils

validateVerb

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

ServerlessAdapter

Next
Built with

Lightweight validation of a verb config against the schema. Checks that the verb exists and that required properties are present.

Parameters

verbName
stringRequired

The verb name (e.g., "answer", "play").

config
unknownRequired

The verb configuration object to validate.

Returns

ValidationResult — An object with valid: boolean and errors: string[].

Example

1import { SchemaUtils } from '@signalwire/sdk';
2
3const schema = new SchemaUtils();
4const result = schema.validateVerb('play', { url: 'https://example.com/audio.mp3' });
5console.log(result.valid); // true
6console.log(result.errors); // []