a2a-source-edit: write agent.py
This commit is contained in:
8
agent.py
8
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=(
|
||||
|
||||
Reference in New Issue
Block a user