Kubernetes-like orchestration system for AI agents
Project description
Synapse
Kubernetes-like orchestration system for AI agents
Synapse is a powerful framework for orchestrating AI agents with Kubernetes-like semantics. It provides a simple YAML-based workflow definition and a rich CLI for managing agent-based applications.
Features
- 🚀 Kubernetes-inspired agent orchestration
- 📊 Built-in observability with a web dashboard
- ⚡ Fast execution with parallel agent processing
- 🔄 Dependency management between agents
- 📝 YAML-based workflow definitions
- 🔍 Tracing and logging for debugging
- 🎨 Rich CLI with beautiful output
Installation
Install from PyPI:
pip install agent-synapse
Quick Start
- Create a workflow file
my_workflow.yaml:
name: Research Workflow
schema_version: "2.0"
description: >
A sample workflow that demonstrates Synapse's capabilities
for orchestrating AI agents in a research pipeline.
agents:
- name: researcher
description: Researches a given topic
model: gpt-4
run: research_agent.py
inputs:
- topic: str
outputs:
- research_summary: str
- name: writer
description: Writes a blog post based on research
model: gpt-4
run: writer_agent.py
depends_on: [researcher]
inputs:
- research: !ref researcher.outputs.research_summary
outputs:
- blog_post: str
- Run the workflow:
synapse run my_workflow.yaml --prompt "neural rendering"
- View the dashboard (optional):
synapse serve
# Open http://localhost:8080 in your browser
Documentation
For detailed documentation, please visit the Synapse Documentation.
Key Concepts
- Agents: Independent units of work that process inputs and produce outputs
- Workflows: YAML files that define the agent graph and their dependencies
- Traces: Detailed execution logs stored in
synapse_traces.db - Dashboard: Web UI for monitoring and debugging agent executions
Examples
Check out the examples directory for sample workflows and agent implementations.
Development
- Clone the repository:
git clone https://github.com/YakshithK/synapse.git
cd synapse
- Set up a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -e ".[dev]"
- Run tests:
pytest
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Support
For support, please open an issue on GitHub.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agent_synapse-0.1.2.tar.gz.
File metadata
- Download URL: agent_synapse-0.1.2.tar.gz
- Upload date:
- Size: 18.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d97be75df56e01665653c3db4015c7619d9d9558ad5c7f07bf4a734c98e05db6
|
|
| MD5 |
31de314ad80f864fcf1c83a1086b9c08
|
|
| BLAKE2b-256 |
22f6d0ad89af9510e62ef1ab733c91a92a6e79fa495cd1851b380c6210849774
|
File details
Details for the file agent_synapse-0.1.2-py3-none-any.whl.
File metadata
- Download URL: agent_synapse-0.1.2-py3-none-any.whl
- Upload date:
- Size: 18.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db9d8942f5f431b65c96f3e1a8193c842a05400203d8cd37f2015d3f667f2ae3
|
|
| MD5 |
24da81c80d9919eec279c15302dfb4c7
|
|
| BLAKE2b-256 |
d1a6aa44aa27af2261fd76641b7579c7f9935f1ae5a3367d1a422f3224d06a82
|