From 9b70bec52ed3a734ce4c53ed1ec5016e8591de32 Mon Sep 17 00:00:00 2001 From: robert Date: Sat, 23 May 2026 13:50:23 -0400 Subject: [PATCH] Advertise builder grant needs --- agent.py | 15 ++++++++++++++- requirements.txt | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/agent.py b/agent.py index 65d25d8..8ddc51a 100644 --- a/agent.py +++ b/agent.py @@ -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, diff --git a/requirements.txt b/requirements.txt index 06db5cc..419dc5d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -a2a-pack>=0.1.17 +a2a-pack>=0.1.18 httpx>=0.27 boto3>=1.34 deepagents>=0.5.0