From 28cfc7b387d52d8cbc5ae2596d11bbbcf3ad3d0b Mon Sep 17 00:00:00 2001 From: a2a-cloud Date: Mon, 13 Jul 2026 02:54:39 +0000 Subject: [PATCH] a2a-source-edit: write agent.py --- agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent.py b/agent.py index c48fb17..eaacf3a 100644 --- a/agent.py +++ b/agent.py @@ -726,7 +726,7 @@ class ProductionIncidentCommander(A2AAgent[CommanderConfig, NoAuth]): ConsumerSetupField.secret("GITEA_TOKEN", label="Gitea token", description="Optional read-only repository token.", required=False), ) - @a2a.tool(description="Diagnose a production incident, collect bounded evidence, rank hypotheses, and write diagnosis artifacts", timeout_seconds=900, cost_class="incident-diagnostic", grant_mode="read_write_overlay", grant_write_prefixes=("outputs/incidents/",), grant_allow_patterns=("**",), grant_deny_patterns=("**/.env", "**/secrets/**", "**/*kubeconfig*")) + @a2a.tool(description="Diagnose a production incident, collect bounded evidence, rank hypotheses, and write diagnosis artifacts", input_schema=DIAGNOSE_INPUT_SCHEMA, timeout_seconds=900, cost_class="incident-diagnostic", grant_mode="read_write_overlay", grant_write_prefixes=("outputs/incidents/",), grant_allow_patterns=("**",), grant_deny_patterns=("**/.env", "**/secrets/**", "**/*kubeconfig*")) async def diagnose_incident( self, ctx: RunContext[NoAuth],