Agents
Python API reference for AgentBase, SWMLService, SWAIG functions, skills, contexts, LiveWire, search, and more
The Agents namespace provides the core framework for building AI-powered voice
agents with SignalWire. It includes the central AgentBase class, SWML document
generation, tool/function definitions, skills, multi-agent hosting, CLI tools
for local testing and deployment, and configuration management for security
and environment settings.
The Server SDK generates SWML documents under the hood.
Each agent produces a SWML document with the ai verb that the SignalWire platform executes.
Example
A complete agent that answers calls, uses an AI prompt, and exposes a custom tool: