Use secret-backed agent builder runtime
All checks were successful
build / build (push) Successful in 28s

This commit is contained in:
robert
2026-05-23 13:32:25 -04:00
parent 0d4ca7b6c2
commit 091f8eaf06
5 changed files with 21 additions and 8 deletions

View File

@@ -305,9 +305,14 @@ def build_tools(ctx: ToolContext) -> list[Any]:
"echo '--- card ---'\n"
"a2a card --project .\n"
)
headers = (
{"authorization": f"Bearer {settings.sandbox_token}"}
if settings.sandbox_token else None
)
async with httpx.AsyncClient(timeout=settings.sandbox_timeout_s + 30) as c:
r = await c.post(
f"{settings.sandbox_url}/v1/run_shell",
headers=headers,
json={
"bucket": bucket, "script": script,
"image": settings.image, "memory_mib": 512,