Meta-package: installs all PyAgent packages (patterns, router, compress, trace, providers, context, blueprint, studio)
Project description
pyagent-all
Meta-package that installs the complete PyAgent suite. One command, everything included.
Install
pip install pyagent-all
What's Included
| Package | Description |
|---|---|
| pyagent-patterns | 18 multi-agent orchestration patterns + composites + guardrails + recovery |
| pyagent-router | Difficulty scoring, cost estimation, model selection, routing middleware |
| pyagent-compress | Inter-agent message compression, agent pruning, interaction pruning, token budgets |
| pyagent-trace | TraceEventBus pub/sub, OpenTelemetry spans, Langfuse export, cost tracking, record/replay |
| pyagent-providers | Multi-provider abstraction, registry, routing strategies, fallback chains, capability negotiation, cost optimizer |
| pyagent-context | Structured context with trust/sensitivity metadata, three-tier memory (working/session/semantic), compression, retrieval, redaction |
| pyagent-blueprint | Declarative YAML specs, Pydantic validation, compilation to RuntimeGraph, contract testing, Mermaid rendering, semantic diff, CLI |
| pyagent-studio | CLI + web control plane for designing, simulating, debugging, and governing agent blueprints with live trace streaming |
Quick Start
import asyncio
from pyagent_patterns.base import Agent, MockLLM
from pyagent_patterns.orchestration import Pipeline
from pyagent_router import ModelSelector
from pyagent_compress import MessageCompressor, CompressMiddleware, TokenBudget
from pyagent_trace import CostTracker
from pyagent_trace.events import TraceEventBus
from pyagent_providers import ProviderRegistry, MockProvider
from pyagent_context import ContextLedger, ContextItem, TrustLevel
# Set up tracing
bus = TraceEventBus()
tracker = CostTracker(event_bus=bus)
# Set up compression with token budget
budget = TokenBudget(workflow_limit=50_000, per_agent_limit=10_000)
middleware = CompressMiddleware(
compressor=MessageCompressor(target_ratio=0.5),
budget=budget,
)
# Build and run a pipeline
llm = MockLLM(responses=["Key facts extracted", "Concise summary"])
pipeline = Pipeline(stages=[
middleware.wrap(Agent("extractor", llm, system_prompt="Extract key facts.")),
Agent("summarizer", llm, system_prompt="Write a concise summary."),
])
result = asyncio.run(pipeline.run("Process this document"))
print(result.output) # "Concise summary"
print(budget.summary()) # Token usage per agent
print(tracker.summary()) # Cost breakdown by pattern/agent/model
End-to-End Flow
The packages are designed to work together in a layered architecture:
- Blueprint → Define agents, workflows, providers, contracts, observability, and context in YAML
- Compile →
BlueprintCompilerproduces aRuntimeGraphof patterns and agents - Orchestrate → Patterns (Pipeline, Supervisor, Debate, etc.) coordinate agents
- Provide →
ProviderRegistry+FallbackChainhandle LLM calls with resilience - Trace →
TraceEventBuscollects events from agents, patterns, providers, and compression - Compress →
CompressMiddlewarereduces inter-agent token transfer;TokenBudgetenforces limits - Remember →
ContextLedgerwith three-tier memory (working → session → semantic) persists context - Observe → Studio dashboard visualizes traces, costs, governance, and agent communication
Documentation
See pyagent.org for full docs, API reference, and cookbook.
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
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 pyagent_all-0.2.3.tar.gz.
File metadata
- Download URL: pyagent_all-0.2.3.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5199a115a694d1ca45372bbb4604bbcc0b6ac99cadbd321fce88cb6e2ffe0387
|
|
| MD5 |
92e1fbdaa7d07e523c0cbb6845372509
|
|
| BLAKE2b-256 |
eea260941da8ea02a9b59e49ad6f24144e37f8a96c7477049e64711f6164f827
|
Provenance
The following attestation bundles were made for pyagent_all-0.2.3.tar.gz:
Publisher:
publish.yml on pyagent-core/pyagent
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyagent_all-0.2.3.tar.gz -
Subject digest:
5199a115a694d1ca45372bbb4604bbcc0b6ac99cadbd321fce88cb6e2ffe0387 - Sigstore transparency entry: 1786931336
- Sigstore integration time:
-
Permalink:
pyagent-core/pyagent@355e2e753ff2fe02e7aa00e75dbc0e77cd1eaef9 -
Branch / Tag:
refs/tags/v0.2.3 - Owner: https://github.com/pyagent-core
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@355e2e753ff2fe02e7aa00e75dbc0e77cd1eaef9 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pyagent_all-0.2.3-py3-none-any.whl.
File metadata
- Download URL: pyagent_all-0.2.3-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af80d99e2cc31b2c99311671dc40ebb9d370898777ec27281011ced361fbc3f2
|
|
| MD5 |
8e609595ac81be528f8057f3f8bc2a42
|
|
| BLAKE2b-256 |
64f70aa971ec8fc13267bf31af7e8eb7b02ad53a483c113db347d88795fef742
|
Provenance
The following attestation bundles were made for pyagent_all-0.2.3-py3-none-any.whl:
Publisher:
publish.yml on pyagent-core/pyagent
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyagent_all-0.2.3-py3-none-any.whl -
Subject digest:
af80d99e2cc31b2c99311671dc40ebb9d370898777ec27281011ced361fbc3f2 - Sigstore transparency entry: 1786931361
- Sigstore integration time:
-
Permalink:
pyagent-core/pyagent@355e2e753ff2fe02e7aa00e75dbc0e77cd1eaef9 -
Branch / Tag:
refs/tags/v0.2.3 - Owner: https://github.com/pyagent-core
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@355e2e753ff2fe02e7aa00e75dbc0e77cd1eaef9 -
Trigger Event:
push
-
Statement type: