Skip to main content

Parametrizable Agno-based agent runtime — FastAPI factory with pluggable agent sources, multi-tenant headers, and LISTEN/NOTIFY hot reload.

Project description

agno-agent-builder

Parametrizable Agno runtime as a library. Build a fully configured FastAPI app for chat with hot-reloadable agents fetched from any source you plug in.

Quick start

from agno_agent_builder import create_app, RuntimeConfig, PayloadAgentSource

app = create_app(
    RuntimeConfig(
        app_name="my-runtime",
        agent_source=PayloadAgentSource(
            base_url="http://payload:3000",
            internal_secret="...",
        ),
        mcp_url="http://mcp:3001/mcp",
        database_url="postgresql://user:pass@host:5432/db",
        internal_secret="...",
    )
)

Public API

Symbol Purpose
create_app(config) Returns a configured FastAPI app
RuntimeConfig Pydantic model — required + optional knobs
AgentSource Protocol — implement async fetch_agents() -> list[AgentConfig]
AgentConfig Normalized per-agent record (CMS-agnostic)
PayloadAgentSource Default source for Payload CMS
build_agent, build_model, build_mcp_tools Lower-level builders for advanced wiring
compose_instructions, DEFAULT_TOOL_PROTOCOL, DEFAULT_OUTPUT_FORMAT Override-friendly prompt building blocks

What you get

  • AgentOS REST surface (/agents, /sessions, /metrics, …)
  • POST /agents/{slug}/runs SSE chat
  • /health, /ready Kubernetes probes
  • POST /internal/agents/reload admin endpoint
  • Postgres LISTEN/NOTIFY hot reload + 5-min belt-and-braces resync
  • ASGI middlewares: X-Request-ID, X-Internal-Secret auth, X-Tenant-Idrequest.state.metadata

Reference consumer

The default consumer that ships in this repo lives in ../agno-agent — it wraps create_app with env-driven settings and is what runs in the agno-agent devcontainer service. ZP and nexus install this lib from PyPI and write their own thin consumer.

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

agno_agent_builder-0.1.10.tar.gz (70.7 kB view details)

Uploaded Source

Built Distribution

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

agno_agent_builder-0.1.10-py3-none-any.whl (57.0 kB view details)

Uploaded Python 3

File details

Details for the file agno_agent_builder-0.1.10.tar.gz.

File metadata

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

File hashes

Hashes for agno_agent_builder-0.1.10.tar.gz
Algorithm Hash digest
SHA256 731576ec0e3babab2caa3c55ee67b273770f61d6c1375312d9ddb1ec22c236fc
MD5 91c8319fad10884c8f8a80d5b8e2701b
BLAKE2b-256 dee17120913ce2d3cbb3bba3a673e6c1d17d44a7b1b63716db879df4b5f31899

See more details on using hashes here.

Provenance

The following attestation bundles were made for agno_agent_builder-0.1.10.tar.gz:

Publisher: release-please.yml on Zetesis-Labs/PayloadAgents

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

File details

Details for the file agno_agent_builder-0.1.10-py3-none-any.whl.

File metadata

File hashes

Hashes for agno_agent_builder-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 341a073cbfdf2b0e2b78b669094e014ffd763b2aeba1d34fbb50ef7e88703c2d
MD5 224f095db6c8bef3a3c5bc113a57a585
BLAKE2b-256 eccd7b076fe9c4e066fcb8b1db600ec0c8aef9e75b3ce8d66b1f046f4dfb2578

See more details on using hashes here.

Provenance

The following attestation bundles were made for agno_agent_builder-0.1.10-py3-none-any.whl:

Publisher: release-please.yml on Zetesis-Labs/PayloadAgents

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