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.2.tar.gz (16.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.2-py3-none-any.whl (21.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agno_agent_builder-0.1.2.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for agno_agent_builder-0.1.2.tar.gz
Algorithm Hash digest
SHA256 7c8c10f5bb8c890fde91a9345399e6b7812f5893dfc0731163456f8d56aadc0e
MD5 fd579c59c9158cfd2b9449677bd11a1b
BLAKE2b-256 6628bb949062469af1bdb7e06fa79c279da4188e59ff8c7638faab02ae855002

See more details on using hashes here.

File details

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

File metadata

  • Download URL: agno_agent_builder-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 21.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for agno_agent_builder-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dbc719efefce1b032f890b592a972b6c4eb06fa47f47d65eee7c977fd607d880
MD5 088fa1b220b36e5ab169c7a2684b9430
BLAKE2b-256 bfecb61a51cf19d0115eb67e7b8bf4c1de951f8ca55566b57543648b60ca5984

See more details on using hashes here.

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