From a1fe3bc562478cadd4bd010f8e1f9ad625b1a535 Mon Sep 17 00:00:00 2001 From: a2a-cloud Date: Sat, 18 Jul 2026 06:50:18 +0000 Subject: [PATCH] a2a-source-edit: write agent.py --- agent.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/agent.py b/agent.py index 73a2640..e7fd2c2 100644 --- a/agent.py +++ b/agent.py @@ -30,6 +30,8 @@ from a2a_pack import ( Pricing, Resources, RunContext, + WorkspaceAccess, + WorkspaceMode, ) from a2a_pack.workspace import FileUpload, UploadedFile @@ -112,6 +114,12 @@ class QuoteJudgeStudioV1(A2AAgent[QuoteJudgeStudioV1Config, PlatformUserAuth]): notes="Deterministic QuoteJudge comparison; no LLM is called.", ) resources = Resources(cpu="250m", memory="512Mi", max_runtime_seconds=120) + workspace_access = WorkspaceAccess.dynamic( + max_files=8, + allowed_modes=(WorkspaceMode.READ_ONLY,), + require_reason=False, + max_total_size_bytes=MAX_UPLOAD_BYTES * MAX_BROWSER_UPLOADS, + ) tools_used = ("postgres", "managed-postgres", "mcp", "packed-frontend") platform_resources = AgentPlatformResources( databases=(