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}/runsSSE chat/health,/readyKubernetes probesPOST /internal/agents/reloadadmin endpoint- Postgres
LISTEN/NOTIFYhot reload + 5-min belt-and-braces resync - ASGI middlewares:
X-Request-ID,X-Internal-Secretauth,X-Tenant-Id→request.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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agno_agent_builder-0.1.3.tar.gz.
File metadata
- Download URL: agno_agent_builder-0.1.3.tar.gz
- Upload date:
- Size: 28.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.9 {"installer":{"name":"uv","version":"0.11.9","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88c33da331cda15fd15012f246b172c4c1c0c7c130a3e4337af4fdd85a67ea23
|
|
| MD5 |
585e5f26281a97c46cc3c5d4a43f42e8
|
|
| BLAKE2b-256 |
e8a0e77eebca6cf33cd47043729993f4a7f1ef0d6c8043f7ca129726f0df2768
|
File details
Details for the file agno_agent_builder-0.1.3-py3-none-any.whl.
File metadata
- Download URL: agno_agent_builder-0.1.3-py3-none-any.whl
- Upload date:
- Size: 40.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.9 {"installer":{"name":"uv","version":"0.11.9","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2afb1c49bd6ab8867e277af677d03f41b538271f69a2366c5d57997bcd668d6
|
|
| MD5 |
95809f30e1b5cc9eee49158d2d2de471
|
|
| BLAKE2b-256 |
c24ac5a2c621e13d98923600942e2cae711df02a95906a78aaa80b58146bc013
|