Skip to main content

agent-core

Unified Agent Core — a declarative, provider-agnostic runtime for building LLM agents from YAML manifests. It's the shared core that powers AgentForge and, unmodified, the naturalist assistant in FloraLens — proving one runtime can serve very different products.

Features

  • Declarative manifests — define an agent (model, prompt, tools, limits, guardrails, io-schema) in YAML; load + validate fail-fast.
  • Pluggable registries — register model providers, tools, prompts, memory backends, and guardrails; extend without editing the core.
  • LangGraph ReAct runtime with live token streaming over an SSE-friendly trace bus.
  • Model providers — OpenAI, Anthropic, and an offline Echo provider for deterministic tests.
  • Built-in tools — web search, HTTP fetch, sandboxed code execution, embedding search; plus MCP auto-binding for external tool servers.
  • Multi-agent supervisor — expose sub-agents to a supervisor as tools.
  • Guardrails & io-schema enforced at runtime; memory (in-memory / mem0); opt-in durable SQLite checkpointer for multi-turn threads.
  • Evaluation harness — dev/held-out suites, programmatic/rubric/LLM-judge scoring, and a regression gate.

Install

pip install "pdz-agent-core[openai]"   # + OpenAI provider; imported as `agent_core`
# extras: [anthropic] [mem0] [mcp] [dev]

Quickstart

from agent_core import build_default_registries, compile_agent, load_manifest_dict

manifest = {
    "id": "echo_agent",
    "model": {"provider": "echo", "name": "test-model"},
    "prompt_ref": "prompts/echo_agent.md",
    "tools": [],
}
agent = compile_agent(load_manifest_dict(manifest), build_default_registries())

async for event in agent.astream("hello"):
    print(event.type, event.detail)

Documentation

Full architecture, API, and the cross-product reuse write-up live in the AgentForge repo under docs/.

License

MIT © pdz1804

Metadata

Release files for pdz-agent-core 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pdz-agent-core 0.1.2
File Size Uploaded
pdz_agent_core-0.1.2.tar.gz 99.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pdz-agent-core 0.1.2
File Interpreter ABI Platform
pdz_agent_core-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 176.6 kB

Release files / pdz_agent_core-0.1.2.tar.gz

Download URL pdz_agent_core-0.1.2.tar.gz
Size 99.1 kB
Tags Source
SHA-256 checksum
How to use checksums
33a388cddd1b2fb8494ec64513637a721f9457708ac1499d57380e85491b076b
BLAKE2b-256 checksum
How to use checksums
a3fa884ec315a9fd74ade5dfd804edde482f1d4dc2c21bf48da482941fdbc854
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 11, 2026.

Transparency log

Release files / pdz_agent_core-0.1.2-py3-none-any.whl

Download URL pdz_agent_core-0.1.2-py3-none-any.whl
Size 77.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c20f33cdea80f8d6390732bfed5bbe0ccfc90078a74dbecb2cebf72bda820fb2
BLAKE2b-256 checksum
How to use checksums
372071f374b1d7ee957aa2e680f8f15a085d88e829757a3486611c2c3f0e497e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 11, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release 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