Skip to main content

Kubernetes-like orchestration system for AI agents

Project description

Synapse

Kubernetes-like orchestration system for AI agents

PyPI version License: MIT Python Version

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

  1. Initialize a new Synapse project:
synapse init

This creates an agents/ directory with demo agents (summarize.py and classify.py) and a workflow.yaml file.

  1. Run the demo workflow:
synapse run workflow.yaml --prompt "Your text here"
  1. View the dashboard (optional):
synapse serve
# Open http://localhost:8080 in your browser
  1. Modify the agents in the agents/ directory to suit your needs!

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

  1. Clone the repository:
git clone https://github.com/YakshithK/synapse.git
cd synapse
  1. Set up a virtual environment:
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
pip install -e ".[dev]"
  1. 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

agent_synapse-0.2.1.tar.gz (21.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agent_synapse-0.2.1-py3-none-any.whl (22.6 kB view details)

Uploaded Python 3

File details

Details for the file agent_synapse-0.2.1.tar.gz.

File metadata

  • Download URL: agent_synapse-0.2.1.tar.gz
  • Upload date:
  • Size: 21.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for agent_synapse-0.2.1.tar.gz
Algorithm Hash digest
SHA256 7a1c1a620e506342de12afd28edc11ae9e721ea9152aba27e04801fd97e50447
MD5 b59c6d8b88e9bb215d521cd1e14228fa
BLAKE2b-256 f1f2aa9e04a32e309c20e1cd02b0b7a3ae794fbd92b72bfc8b1dbf4dd1d594b6

See more details on using hashes here.

File details

Details for the file agent_synapse-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: agent_synapse-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 22.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for agent_synapse-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1ab6e1ad4c9598b93f0c8fb1e099c96f44b47a430f2e3ffa489ce5bbe403a82e
MD5 ae69763a9462eace6983975e0b34e042
BLAKE2b-256 8c3ef0f2af9c994aaa047c36cc915aa5a0dd017097a5866855052eefce5d3936

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page