You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This directory contains working examples demonstrating the features of the SignalWire SDK.
Setup
# Install the SDK in development mode (from the repository root)
pip install -e .# For search examples, install search extras
pip install -e .[search-all]
Running Examples
# Run any example directly
python examples/simple_agent.py
# Test without running a server
swaig-test examples/simple_agent.py --list-tools
swaig-test examples/simple_agent.py --dump-swml
swaig-test examples/simple_agent.py --exec get_weather --location "New York"
The swaig-test CLI tool lets you test any example without running a server:
# List all tools an agent exposes
swaig-test examples/simple_agent.py --list-tools
# Generate the SWML document
swaig-test examples/simple_agent.py --dump-swml
# Execute a specific tool
swaig-test examples/simple_agent.py --exec get_weather --location "San Francisco"# Test in a serverless environment
swaig-test examples/lambda_agent.py --simulate-serverless lambda --dump-swml
# Multi-agent files - select by class or route
swaig-test examples/multi_agent_server.py --agent-class HealthcareAgent --dump-swml
swaig-test examples/multi_agent_server.py --route /finance --list-tools