Enterprise-ready, SaaS-native Python multi-agent framework
Project description
Nexus
Enterprise-ready agent framework. Describe agents in config. Wire who is calling and where data lives at run time. Call run().
No global LLM settings. No shared agent singleton. Built for multi-tenant SaaS apps.
Install
From PyPI:
pip install nexus-enterprise-agent
With optional extras (storage, LLM providers, FastAPI):
pip install "nexus-enterprise-agent[sqlite,litellm,fastapi]"
From GitHub:
pip install "git+https://github.com/gowrav-vishwakarma/nexus-saas-agent-framework.git"
For local development, clone the repo and sync dependencies:
uv sync --extra dev --extra sqlite --extra file
For the SaaS API example:
uv sync --extra fastapi --extra sqlite --extra litellm
Copy .env.example to .env and set your LLM API key.
Run tests:
uv run pytest
Run in 3 steps
| Step | File | Purpose |
|---|---|---|
| 1 | team.yaml |
What agents exist and how they connect |
| 2 | team_prompts.py |
How they speak (prompt templates) |
| 3 | Short Python script | Who is calling (tenant, user, chat id) |
The repo includes a working team at examples/orchestration/.
uv run python examples/orchestration/run_team.py "Analyze Q4 revenue"
Minimal example
import asyncio
from nexus import OrchestrationManifest, OrchestrationRuntime, RunContext
async def main():
manifest = OrchestrationManifest.load("examples/orchestration/research_team.yaml")
runtime = OrchestrationRuntime.from_manifest(
manifest,
run_context=RunContext(
tenant_id="demo",
user_id="user-1",
session_id="chat-1", # set before building runtime for teams
),
)
result = await runtime.run("Analyze Q4 revenue")
print(result.final_response)
asyncio.run(main())
Every parameter (optional fields and defaults) is documented in docs/assets/complete-manifest.annotated.yaml and docs/assets/complete-run.annotated.py.
Learn more
Full documentation: docs/index.md
| Topic | Doc |
|---|---|
| Architecture (what goes where) | docs/architecture.md |
| YAML walkthrough | docs/getting-started.md |
| Python API walkthrough | docs/getting-started-python.md |
| All YAML fields + defaults | docs/reference/manifest-schema.md |
| Memory (cross-session facts) | docs/reference/memory.md |
| Context summary (long chats) | docs/reference/context-summary.md |
| Multi-tenant SaaS example | docs/guides/saas-example.md |
| Example index | docs/examples.md |
| Full design spec | NEXUS_AGENT_PRD.md |
Examples
- examples/orchestration/ — YAML multi-agent team
- examples/nexus_saas_api.py — FastAPI SaaS API with plan tiers
uv run uvicorn examples.nexus_saas_api:app --host 0.0.0.0 --port 8000
Project details
Release history Release notifications | RSS feed
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 nexus_enterprise_agent-0.1.0.tar.gz.
File metadata
- Download URL: nexus_enterprise_agent-0.1.0.tar.gz
- Upload date:
- Size: 424.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c999ee9b01d1b345055b92151c0f3893894048ab3c1784c508266031f70af974
|
|
| MD5 |
852143b09c25e65057ff317352d1dc51
|
|
| BLAKE2b-256 |
93080973be72fd41ca70a9e0e028be085d364d2fdd74010c57c193b9bd7212e2
|
File details
Details for the file nexus_enterprise_agent-0.1.0-py3-none-any.whl.
File metadata
- Download URL: nexus_enterprise_agent-0.1.0-py3-none-any.whl
- Upload date:
- Size: 118.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be5d553d32f016641096a0b095bf41277438f9808e0720666c0f3c07c8d450db
|
|
| MD5 |
dd1ae8c558a51013b1d584963e1e8ee7
|
|
| BLAKE2b-256 |
f5043a791a6ce33fa256b8cc5edb97e62a4746efa8c3e31cc66e5b7083a1c852
|