Skip to main content

Unified Agent Core — declarative agent manifests, pluggable registries, and interfaces for the AgentForge harness.

Project description

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

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

pdz_agent_core-0.1.2.tar.gz (99.1 kB view details)

Uploaded Source

Built Distribution

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

pdz_agent_core-0.1.2-py3-none-any.whl (77.4 kB view details)

Uploaded Python 3

File details

Details for the file pdz_agent_core-0.1.2.tar.gz.

File metadata

  • Download URL: pdz_agent_core-0.1.2.tar.gz
  • Upload date:
  • Size: 99.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pdz_agent_core-0.1.2.tar.gz
Algorithm Hash digest
SHA256 33a388cddd1b2fb8494ec64513637a721f9457708ac1499d57380e85491b076b
MD5 653f9d5deba89658e1b70f4c824fb606
BLAKE2b-256 a3fa884ec315a9fd74ade5dfd804edde482f1d4dc2c21bf48da482941fdbc854

See more details on using hashes here.

Provenance

The following attestation bundles were made for pdz_agent_core-0.1.2.tar.gz:

Publisher: release.yml on pdz1804/agentforge

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

File details

Details for the file pdz_agent_core-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pdz_agent_core-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 77.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pdz_agent_core-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c20f33cdea80f8d6390732bfed5bbe0ccfc90078a74dbecb2cebf72bda820fb2
MD5 fd59ff2514d4f2334b83612eb089bb97
BLAKE2b-256 372071f374b1d7ee957aa2e680f8f15a085d88e829757a3486611c2c3f0e497e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pdz_agent_core-0.1.2-py3-none-any.whl:

Publisher: release.yml on pdz1804/agentforge

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