Skip to main content

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.

License: MIT Python 3.11+

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:

  1. Blueprint → Define agents, workflows, providers, contracts, observability, and context in YAML
  2. CompileBlueprintCompiler produces a RuntimeGraph of patterns and agents
  3. Orchestrate → Patterns (Pipeline, Supervisor, Debate, etc.) coordinate agents
  4. ProvideProviderRegistry + FallbackChain handle LLM calls with resilience
  5. TraceTraceEventBus collects events from agents, patterns, providers, and compression
  6. CompressCompressMiddleware reduces inter-agent token transfer; TokenBudget enforces limits
  7. RememberContextLedger with three-tier memory (working → session → semantic) persists context
  8. 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

pyagent_all-0.2.3.tar.gz (3.0 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.2.3-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

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

Hashes for pyagent_all-0.2.3.tar.gz
Algorithm Hash digest
SHA256 5199a115a694d1ca45372bbb4604bbcc0b6ac99cadbd321fce88cb6e2ffe0387
MD5 92e1fbdaa7d07e523c0cbb6845372509
BLAKE2b-256 eea260941da8ea02a9b59e49ad6f24144e37f8a96c7477049e64711f6164f827

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyagent_all-0.2.3.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.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

Hashes for pyagent_all-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 af80d99e2cc31b2c99311671dc40ebb9d370898777ec27281011ced361fbc3f2
MD5 8e609595ac81be528f8057f3f8bc2a42
BLAKE2b-256 64f70aa971ec8fc13267bf31af7e8eb7b02ad53a483c113db347d88795fef742

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyagent_all-0.2.3-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.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page