Advertise builder grant needs
All checks were successful
build / build (push) Successful in 27s

This commit is contained in:
robert
2026-05-23 13:50:23 -04:00
parent d629dcd455
commit 9b70bec52e
2 changed files with 15 additions and 2 deletions

View File

@@ -26,7 +26,8 @@ from typing import Any
from pydantic import BaseModel
from a2a_pack import (
A2AAgent, LLMProvisioning, NoAuth, Pricing, RunContext, skill,
A2AAgent, LLMProvisioning, NoAuth, Pricing, RunContext, WorkspaceAccess,
WorkspaceMode, skill,
)
from agent_builder import BuilderContext, build_agent_builder
@@ -54,6 +55,9 @@ class AgentBuilder(A2AAgent[BuilderConfig, NoAuth]):
tools_used = ("deepagents", "langgraph", "a2a-pack", "litellm", "microsandbox")
llm_provisioning = LLMProvisioning.CALLER_PROVIDED
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,
@@ -68,6 +72,15 @@ class AgentBuilder(A2AAgent[BuilderConfig, NoAuth]):
),
tags=["builder", "scaffold", "deepagents", "meta"],
stream=True,
timeout_seconds=1800,
cost_class="expensive",
grant_mode="read_write_overlay",
grant_allow_patterns=("agents/{name}/**",),
grant_outputs_prefix="agents/{name}/",
grant_ttl_seconds=1800,
grant_run_timeout_seconds=1740,
grant_approval_timeout_seconds=180,
grant_scope_approval_timeout_seconds=120,
)
async def build(
self,