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. 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
  1. Run the workflow:
synapse run my_workflow.yaml --prompt "neural rendering"
  1. 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

  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.1.33.tar.gz (18.3 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.1.33-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agent_synapse-0.1.33.tar.gz
  • Upload date:
  • Size: 18.3 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.1.33.tar.gz
Algorithm Hash digest
SHA256 3f53b62eceec58a2d808950c029934018c8d30560936913831026050a9348634
MD5 7dbbe03200abcb56d455072e064341dd
BLAKE2b-256 fa6ab3381e89bbbd86fb17c2d8150c408b6fc8401537e57ecd727842b1bf3fdf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: agent_synapse-0.1.33-py3-none-any.whl
  • Upload date:
  • Size: 19.3 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.1.33-py3-none-any.whl
Algorithm Hash digest
SHA256 ebd91fb135e1e2c99e665dab63ec8d8427ee65e76d23e06639dc5f536a836fc6
MD5 1136a0f12bcf4ccbbad4ee2de87e7a4e
BLAKE2b-256 d503cbf40d6132498549614f610f60c17b6e59668f9da11f22678163e2ff2597

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