Catalog PyPI
Back to packageRELEASE DETAILS

0.2.0

PyPI

agentic-swarm

Plug-and-play SDK for building immortal, self-healing multi-agent AI systems

agentsaiautonomousllmmulti-agentragswarm
Published23 May 2026
Direct dependencies17
Transitive dependenciesNot calculated

README

Version 0.2.0 documentation

Agentic Swarm Banner

Agentic Swarm Logo

Build immortal, self-healing multi-agent AI systems

CI PyPI Downloads License Python Stars

Features • Installation • Quick Start • Documentation • Contributing

README Code of Conduct Contributing License Security


What is Agentic Swarm?

Agentic Swarm is a production-grade SDK for building multi-agent AI systems where agents:

  • Never die — Auto-heal on failure with state recovery
  • Spawn children — Dynamically create sub-agents for complex subtasks
  • Route intelligently — Pick the optimal LLM based on task complexity
  • Remember everything — Tiered memory with vector-indexed long-term storage
  • Stay secure — Audit logs, encryption, RBAC, and data isolation

Highlights

Tests Passing LLM Providers Examples External DBs

Features

FeatureDescription
Immortal AgentsAuto-heal on failure with state recovery
Dynamic SpawningCreate sub-agents at runtime
7 LLM ProvidersOpenAI, Anthropic, Bedrock, Gemini, Groq, Ollama, vLLM
Smart RoutingCost/speed/quality optimized model selection
Tiered MemoryCore + Recall + Archival (vector-indexed)
Never-Forget MemoryCompress, store, search, inject memories across sessions
RAG PipelineChunk → Embed → Retrieve (dense+BM25+RRF) → Rerank
Hybrid SearchDense vectors + BM25 sparse + Reciprocal Rank Fusion
Sandbox IsolationCPU/memory limits, data isolation per agent
SecurityAudit logs, AES-256 encryption, RBAC

Installation

pip install agentic-swarm

With optional providers:

pip install agentic-swarm[openai]      # OpenAI
pip install agentic-swarm[anthropic]   # Anthropic
pip install agentic-swarm[bedrock]     # AWS Bedrock
pip install agentic-swarm[all]         # Everything

Quick Start

import asyncio
from agentic_swarm import Agent, Swarm, tool

@tool
def search_web(query: str) -> str:
    """Search the web for information."""
    return f"Results for: {query}"

agent = Agent(
    name="researcher",
    role="Research and gather information",
    tools=[search_web],
)

swarm = Swarm(agents=[agent])

async def main():
    result = await swarm.run("Find information about AI agents")
    print(result)

asyncio.run(main())

With LLM Provider

from agentic_swarm import Agent
from agentic_swarm.llm import LLMRouter, OpenAIProvider

router = LLMRouter(strategy="quality_optimized")
router.register_provider("openai", OpenAIProvider(model="gpt-4o"))

agent = Agent(
    name="assistant",
    role="Helpful AI assistant",
    llm_router=router,
)

result = await agent.run("Explain quantum computing")

Never-Forget Memory

from agentic_swarm import Agent
from agentic_swarm.vectordb import InMemoryVectorDB
from agentic_swarm.rag.embedder import Embedder

# Agent that remembers across sessions
agent = Agent(
    name="assistant",
    role="Helpful assistant",
    vectordb=InMemoryVectorDB(),
    embedder=Embedder(),
    auto_archive=True,
    auto_inject_memories=True,
)

# Store memories
await agent.remember("User prefers dark mode")

# Search memories
memories = await agent.recall("user preferences")

# Run task - automatically injects relevant memories
result = await agent.run("What are my preferences?")

Documentation

DocumentDescription
Getting StartedInstallation and first steps
ConfigurationAll configurable parameters
API ReferenceComplete API documentation
ExamplesCode examples and tutorials
ArchitectureSystem design

Examples

# Full SDK showcase
python examples/full_showcase.py --provider openai

# With AWS Bedrock
python examples/full_showcase.py --provider bedrock

# Demo mode (no LLM)
python examples/full_showcase.py --skip-llm

See examples/ for working examples covering all features.

Contributing

We welcome contributions! Please see our contributing guidelines.

ResourceLink
📖 READMEREADME.md
🤝 Code of ConductCODE_OF_CONDUCT.md
👥 ContributingCONTRIBUTING.md
📜 LicenseApache 2.0
🔒 SecuritySECURITY.md

Development Setup

git clone https://github.com/nik0811/agentic-swarm.git
cd agentic-swarm
python -m venv env && source env/bin/activate
pip install -e ".[dev,all]"
pytest tests/ -v

Roadmap

  • 7 LLM Providers (OpenAI, Anthropic, Bedrock, Gemini, Groq, Ollama, vLLM)
  • Tiered Memory (Core + Recall + Archival)
  • RAG Pipeline with Hybrid Search
  • Agent Sandbox & Data Isolation
  • Never-Forget Memory
  • Web UI Dashboard
  • Distributed Multi-Node Swarms
  • OpenTelemetry Integration

License

Apache License 2.0 — see LICENSE for details.


Built with ❤️ for the AI community

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 26

Native requirements
17 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
httpx
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
httpx>=0.25runtime
pydantic
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
pydantic>=2.0runtime
tiktoken
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
tiktoken>=0.5runtime
anthropic
Environment
{
  "extras": "",
  "marker": "extra == \"all\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
anthropic>=0.18; extra == "all"runtime
boto3
Environment
{
  "extras": "",
  "marker": "extra == \"all\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
boto3>=1.34; extra == "all"runtime
cryptography
Environment
{
  "extras": "",
  "marker": "extra == \"all\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
cryptography>=41.0; extra == "all"runtime
google-genai
Environment
{
  "extras": "",
  "marker": "extra == \"all\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
google-genai>=1.0; extra == "all"runtime
groq
Environment
{
  "extras": "",
  "marker": "extra == \"all\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
groq>=0.4; extra == "all"runtime
openai
Environment
{
  "extras": "",
  "marker": "extra == \"all\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
openai>=1.0; extra == "all"runtime
qdrant-client
Environment
{
  "extras": "",
  "marker": "extra == \"all\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
qdrant-client>=1.7; extra == "all"runtime
redis
Environment
{
  "extras": "",
  "marker": "extra == \"all\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
redis>=5.0; extra == "all"runtime
anthropic
Environment
{
  "extras": "",
  "marker": "extra == \"anthropic\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
anthropic>=0.18; extra == "anthropic"runtime
boto3
Environment
{
  "extras": "",
  "marker": "extra == \"bedrock\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
boto3>=1.34; extra == "bedrock"runtime
cryptography
Environment
{
  "extras": "",
  "marker": "extra == \"crypto\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
cryptography>=41.0; extra == "crypto"runtime
bandit
Environment
{
  "extras": "toml",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
bandit[toml]>=1.7; extra == "dev"runtime
cryptography
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
cryptography>=41.0; extra == "dev"runtime
mypy
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
mypy>=1.8; extra == "dev"runtime
pytest-asyncio
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
pytest-asyncio>=0.23; extra == "dev"runtime
pytest-cov
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
pytest-cov>=4.0; extra == "dev"runtime
pytest
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
pytest>=8.0; extra == "dev"runtime
ruff
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
ruff>=0.3; extra == "dev"runtime
google-genai
Environment
{
  "extras": "",
  "marker": "extra == \"gemini\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
google-genai>=1.0; extra == "gemini"runtime
groq
Environment
{
  "extras": "",
  "marker": "extra == \"groq\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
groq>=0.4; extra == "groq"runtime
openai
Environment
{
  "extras": "",
  "marker": "extra == \"openai\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
openai>=1.0; extra == "openai"runtime
qdrant-client
Environment
{
  "extras": "",
  "marker": "extra == \"qdrant\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
qdrant-client>=1.7; extra == "qdrant"runtime
redis
Environment
{
  "extras": "",
  "marker": "extra == \"redis\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
redis>=5.0; extra == "redis"runtime

Distribution files

2 collected
agentic_swarm-0.2.0-py3-none-any.whl

bdist_wheel · 118.56 KB · Python py3

Source file
agentic_swarm-0.2.0.tar.gz

sdist · 3,786.74 KB · Python source

Source file

Repository

PENDING
nik0811/agentic-swarm

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:22 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:d981d455d65449980abb23d5716cabbe3bdb3d7d912739ddfcd4aebddcdd29bb

Other collected versions

View all collected versions →