initial: deepagents-driven agent generator + deployer
All checks were successful
build / build (push) Successful in 31s

This commit is contained in:
robert
2026-05-11 21:26:52 -03:00
commit 87eedb47a4
13 changed files with 883 additions and 0 deletions

43
agent_builder/config.py Normal file
View File

@@ -0,0 +1,43 @@
"""Runtime config — env-driven, matches the rest of the cluster."""
from __future__ import annotations
import os
from dataclasses import dataclass
@dataclass(frozen=True)
class Settings:
sandbox_url: str
sandbox_timeout_s: int
litellm_url: str
litellm_key: str
litellm_model: str
cp_url: str
minio_endpoint: str
minio_access_key: str
minio_secret_key: str
image: str
def load_settings() -> Settings:
return Settings(
sandbox_url=os.environ.get(
"SANDBOX_URL", "http://sandbox.sandbox.svc.cluster.local:8000"
),
sandbox_timeout_s=int(os.environ.get("SANDBOX_TIMEOUT_S", "240")),
litellm_url=os.environ.get(
"A2A_LITELLM_URL", "http://litellm.llm.svc.cluster.local:4000"
),
litellm_key=os.environ.get("A2A_LITELLM_KEY", "sk-microcash-local"),
litellm_model=os.environ.get("A2A_LITELLM_MODEL", "gpt-5.5"),
cp_url=os.environ.get(
"A2A_CP_URL", "http://control-plane.control-plane.svc.cluster.local"
),
minio_endpoint=os.environ.get(
"A2A_MINIO_ENDPOINT",
"http://microcash-infra-minio.microcash-infra.svc.cluster.local:9000",
),
minio_access_key=os.environ.get("A2A_MINIO_ACCESS_KEY", "minioadmin"),
minio_secret_key=os.environ.get("A2A_MINIO_SECRET_KEY", "minioadmin"),
image=os.environ.get("AGENT_BUILDER_IMAGE", "python:3.11-slim"),
)