Skip to main content

pyagent-all

PyAgent: A Production Stack for Multi-Agent LLM Systems — one command installs all four architecture pillars.

License: MIT Python 3.11+

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyagent_all-0.3.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

pyagent_all-0.3.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file pyagent_all-0.3.0.tar.gz.

File metadata

  • Download URL: pyagent_all-0.3.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for pyagent_all-0.3.0.tar.gz
Algorithm Hash digest
SHA256 88de62cbe65c5ba362d39d2e3e3b1d3e6d2a8186e0fa5ceeae49b1e28fb4f825
MD5 e42b76491d8f1deb3c2b984d0dd6208d
BLAKE2b-256 a6633d1146f5bace86b058f86042e65e5d2a37e1efb77da05e67bdd3f59e96ff

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyagent_all-0.3.0.tar.gz:

Publisher: publish.yml on pyagent-core/pyagent

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyagent_all-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: pyagent_all-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for pyagent_all-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e059091b312f0c1047a2bd992749d889deffbfe7e71bbd7b7313f68e3a8156db
MD5 b0edb5cf5e62686b0dafd3ae0b5ae25d
BLAKE2b-256 7fd9d8674ddd8ac13e9b79410d224e73ed5eac6bb0fdfa5459b754db82e5d1c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyagent_all-0.3.0-py3-none-any.whl:

Publisher: publish.yml on pyagent-core/pyagent

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 files

0.2.4

2 files

0.2.3

2 files

0.2.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page