fix: use platform llm grants for builder
All checks were successful
build / build (push) Successful in 2s

This commit is contained in:
robert
2026-05-26 09:49:40 -03:00
parent ca559b8346
commit 98a8c57c83
4 changed files with 21 additions and 10 deletions

View File

@@ -10,8 +10,8 @@ This agent only works when invoked through the platform orchestrator,
because it needs three things forwarded from the caller:
1. ``ctx.workspace.bucket`` — the user's MinIO bucket
2. ``ctx.llm`` — caller's LLM creds (this is an expensive skill;
the user pays for inference directly via their own provider)
2. ``ctx.llm`` — a platform-scoped LiteLLM grant token for the builder's
own DeepAgents loop
3. ``ctx.cp_jwt`` — the user's CP JWT, so cp_deploy_tarball can
POST to /v1/agents/from-tarball as the user.
"""
@@ -53,15 +53,18 @@ class AgentBuilder(A2AAgent[BuilderConfig, NoAuth]):
config_model = BuilderConfig
auth_model = NoAuth
tools_used = ("deepagents", "langgraph", "a2a-pack", "litellm", "microsandbox")
llm_provisioning = LLMProvisioning.CALLER_PROVIDED
llm_provisioning = LLMProvisioning.PLATFORM
wants_cp_jwt = True
workspace_access = WorkspaceAccess.dynamic(
allowed_modes=(WorkspaceMode.READ_ONLY, WorkspaceMode.READ_WRITE_OVERLAY),
)
pricing = Pricing(
price_per_call_usd=0.10,
caller_pays_llm=True,
notes="LLM cost passes through; deployed agent is yours forever.",
caller_pays_llm=False,
notes=(
"Uses a platform-scoped LiteLLM grant for the builder's own "
"reasoning loop; deployed agent is yours forever."
),
)
@skill(