Siren Agent Toolkit (Python)
The Siren Agent Toolkit provides a unified Python interface and agent tools for interacting with the Siren MCP (Model Context Protocol) platform. It enables messaging, template management, user management, workflow automation, and webhook configuration, with seamless integration into popular agent frameworks like LangChain, OpenAI, and CrewAI.
Features & Capabilities
Messaging
- Send messages via various channels (Email, SMS, WhatsApp, Slack, Teams, Discord, Line, etc.)
- Retrieve message status and replies
- Support for template-based and direct messaging
Templates
- List, create, update, delete, and publish notification templates
- Create and manage channel-specific templates
- Support for template variables and versioning
Users
- Add, update, and delete users
- Manage user attributes and contact information
Workflows
- Trigger workflows (single or bulk operations)
- Schedule workflows for future or recurring execution
- Pass custom data to workflow executions
Webhooks
- Configure webhooks for status updates
- Set up inbound message webhooks
- Optional webhook verification with secrets
📋 Requirements
- A Siren API key (get one from Siren Dashboard)
Installation
pip install siren-agent-toolkit
For local development:
# From the python/ directory
pip install -e .
Usage
Basic Example
from siren_agent_toolkit.api import SirenAPI
# Initialize with your API key
api = SirenAPI(api_key="YOUR_API_KEY")
# Send a simple email message
result = api.run("send_message", {
"recipient_value": "user@example.com",
"channel": "EMAIL",
"subject": "Important Update",
"body": "Hello from Siren! This is an important notification."
})
print(result)
Examples
Complete working examples are available in the examples/ directory:
examples/langchain/main.py— Using Siren tools with LangChainexamples/openai/main.py— Using Siren tools with OpenAIexamples/crewai/main.py— Using Siren tools with CrewAI
Development
Configuration
The toolkit supports flexible configuration options:
from siren_agent_toolkit.api import SirenAPI
api = SirenAPI(
api_key="YOUR_API_KEY",
context={"env": "production"} # Optional environment configuration
)
Building Locally
# From the python/ directory
pip install -e .
# Install development dependencies
pip install -r requirements.txt
Running Tests
pytest tests/
License
MIT
Metadata
Release files for siren-agent-toolkit 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| siren_agent_toolkit-0.1.1.tar.gz | 11.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| siren_agent_toolkit-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.5 kB
Release files / siren_agent_toolkit-0.1.1.tar.gz
| Download URL | siren_agent_toolkit-0.1.1.tar.gz |
|---|---|
| Size | 11.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d23b6823c224c77a77dce27e01956bfcbbfda1f6626cad486be90ae276712249
|
|
BLAKE2b-256 checksum How to use checksums |
baee0feaad09db673196cb4b47345b5643b3b3405d9cec05cfd0943e635fdb50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.13
|
Release files / siren_agent_toolkit-0.1.1-py3-none-any.whl
| Download URL | siren_agent_toolkit-0.1.1-py3-none-any.whl |
|---|---|
| Size | 12.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0a7635e58a25e71156b8849a7074191dc4a3097f6fc40cbf92e7a6e319de486c
|
|
BLAKE2b-256 checksum How to use checksums |
dab152e0efd587e7c5808de9303b2d53a391e3d89da25513cbcd399f2229f4f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.13
|