pyagent-all
PyAgent: A Production Stack for Multi-Agent LLM Systems — one command installs all four architecture pillars.
pip install pyagent-all
Four Architecture Pillars
PyAgent is organised around four pillars that mirror the lifecycle of a production multi-agent system. Install them all with pyagent-all, or pick only the pillars you need.
📋 Pillar 1 — Blueprint
Declare your entire agent system in a single YAML file.
| Package | Role | Standalone install |
|---|---|---|
| pyagent-blueprint | YAML spec → Pydantic validation → RuntimeGraph. Validate, compile, test, diff, render, and generate from the CLI. |
pip install pyagent-blueprint |
# customer-support.yaml
api_version: pyagent/v1
metadata: { name: customer-support, version: "1.0.0" }
providers:
fast: { provider: anthropic, model: claude-haiku-3-5-20241022 }
expert: { provider: anthropic, model: claude-sonnet-4-20250514 }
agents:
classifier: { provider: fast, prompt: "Classify into billing, technical, general." }
specialist: { provider: expert, prompt: "Handle the request professionally." }
workflows:
main:
pattern: supervisor
agents: { classifier: classifier, routes: { billing: specialist } }
blueprint validate customer-support.yaml # static analysis
blueprint test customer-support.yaml # contract conformance
blueprint diff v1.yaml v2.yaml # semantic diff
⚡ Pillar 2 — Execution
Run 18 orchestration patterns against real providers, with model routing and compression.
| Package | Role | Standalone install |
|---|---|---|
| pyagent-patterns | 18 named patterns: Pipeline, Supervisor, Fan-Out, Debate, Swarm, ReAct and more | pip install pyagent-patterns |
| pyagent-providers | Multi-provider registry, routing strategies, fallback chains, capability negotiation | pip install pyagent-providers |
| pyagent-router | Difficulty scoring (1–10), cost estimation, model selection middleware | pip install pyagent-router |
| pyagent-compress | Inter-agent message compression, agent pruning, token budget enforcement | pip install pyagent-compress |
import asyncio
from pyagent_patterns.orchestration import Pipeline
from pyagent_patterns.base import Agent
from pyagent_providers import ProviderRegistry, AnthropicLLM
from pyagent_router.middleware import RouterMiddleware
registry = ProviderRegistry()
registry.register("anthropic", AnthropicLLM)
model_registry = {
"claude-haiku": AnthropicLLM("claude-haiku-3-5-20241022"),
"claude-sonnet": AnthropicLLM("claude-sonnet-4-20250514"),
}
router = RouterMiddleware(model_registry=model_registry)
pipeline = Pipeline(
stages=[
router.wrap(Agent("extractor", AnthropicLLM("claude-sonnet-4-20250514"))),
router.wrap(Agent("summarizer", AnthropicLLM("claude-sonnet-4-20250514"))),
]
)
result = asyncio.run(pipeline.run("Summarise this quarterly report..."))
🧠 Pillar 3 — Context & Memory
Give agents structured, trust-aware memory that persists across turns.
| Package | Role | Standalone install |
|---|---|---|
| pyagent-context | Three-tier memory (working / session / semantic), trust levels, sensitivity classification, compression, PII redaction | pip install pyagent-context |
from pyagent_context import ContextLedger, ContextItem, TrustLevel, Sensitivity
ledger = ContextLedger()
ledger.append(
ContextItem(
content="Customer ID: C-10482, account since 2022",
source="database",
trust=TrustLevel.VERIFIED,
sensitivity=Sensitivity.INTERNAL,
)
)
# Wire to all agents in a compiled graph
graph.wire_context(ledger)
📊 Pillar 4 — Observability
Trace every LLM call, track costs, and govern from a web dashboard.
| Package | Role | Standalone install |
|---|---|---|
| pyagent-trace | TraceEventBus pub/sub, OTel spans, Langfuse export, cost tracking, record/replay |
pip install pyagent-trace |
| pyagent-studio | kubectl-style CLI + FastAPI web dashboard: simulate, diff, trace explorer, governance, provider health |
pip install pyagent-studio |
from pyagent_trace.events import TraceEventBus
bus = TraceEventBus()
graph.wire_trace(bus) # attach to all agents in the compiled graph
pyagent apply customer-support.yaml # load and validate
pyagent simulate customer-support.yaml main "I need a refund"
pyagent dashboard --blueprint customer-support.yaml
Full Stack Example
import asyncio
from pyagent_blueprint import load_blueprint, BlueprintCompiler
from pyagent_providers import ProviderRegistry, AnthropicLLM
from pyagent_trace.events import TraceEventBus
from pyagent_context import ContextLedger, ContextItem, TrustLevel
# Pillar 1 — Blueprint
spec = load_blueprint("customer-support.yaml")
# Pillar 2 — Execution
registry = ProviderRegistry()
registry.register("anthropic", AnthropicLLM)
graph = BlueprintCompiler(provider_registry=registry).compile(spec)
# Pillar 3 — Context & Memory
ledger = ContextLedger()
ledger.append(ContextItem("Customer tier: premium", source="crm", trust=TrustLevel.VERIFIED))
graph.wire_context(ledger)
# Pillar 4 — Observability
bus = TraceEventBus()
graph.wire_trace(bus)
# Run
result = asyncio.run(graph.run("main", "I was charged twice this month"))
print(result.output)
What's Included
pyagent-all
├── 📋 Blueprint
│ └── pyagent-blueprint YAML spec → RuntimeGraph
├── ⚡ Execution
│ ├── pyagent-patterns 18 orchestration patterns
│ ├── pyagent-providers multi-provider registry + routing
│ ├── pyagent-router difficulty-aware model selection
│ └── pyagent-compress inter-agent compression + budgets
├── 🧠 Context & Memory
│ └── pyagent-context three-tier memory + trust + redaction
└── 📊 Observability
├── pyagent-trace TraceEventBus + OTel + cost tracking
└── pyagent-studio CLI + web dashboard + governance
→ Full documentation at pyagent.org
The PyAgent ecosystem
PyAgent is a production stack for multi-agent LLM systems. Each package is independent — install
only what you need, or get everything with pip install pyagent-all.
| Package | What it gives you |
|---|---|
pyagent-blueprint |
Declarative multi-agent blueprints — compile, validate, and diff agent systems from YAML |
pyagent-patterns |
Reusable multi-agent design patterns — Supervisor, Pipeline, ReAct, and 15 more |
pyagent-router |
Difficulty-aware model routing — cost-efficient model selection per task |
pyagent-compress |
Token-efficient agent compression — inter-agent token budgets |
pyagent-providers |
Multi-provider orchestration — fallback chains and capability negotiation |
pyagent-context |
Stateful agent memory — trust-aware, three-tier context ledger |
pyagent-trace |
Multi-agent observability & tracing — pattern-aware OpenTelemetry spans |
pyagent-studio |
Agent control plane dashboard — live traces, cost, and governance |
Learn more: Design patterns · Cookbook · Get started
Metadata
Release files for pyagent-all 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyagent_all-0.3.0.tar.gz | 4.4 kB | With provenance | Details for pyagent_all-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyagent_all-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for pyagent_all-0.3.0-py3-none-any.whl |
Total release size: 8.9 kB
Release files / pyagent_all-0.3.0.tar.gz
| Download URL | pyagent_all-0.3.0.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
88de62cbe65c5ba362d39d2e3e3b1d3e6d2a8186e0fa5ceeae49b1e28fb4f825
|
|
BLAKE2b-256 checksum How to use checksums |
a6633d1146f5bace86b058f86042e65e5d2a37e1efb77da05e67bdd3f59e96ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 8, 2026.
Transparency logRelease files / pyagent_all-0.3.0-py3-none-any.whl
| Download URL | pyagent_all-0.3.0-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e059091b312f0c1047a2bd992749d889deffbfe7e71bbd7b7313f68e3a8156db
|
|
BLAKE2b-256 checksum How to use checksums |
7fd9d8674ddd8ac13e9b79410d224e73ed5eac6bb0fdfa5459b754db82e5d1c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 8, 2026.
Transparency logSecurity for pyagent-all 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for pyagent_all-0.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 8, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.