a2a-source-edit: write agent.py

This commit is contained in:
a2a-cloud
2026-07-13 02:54:39 +00:00
parent 9af27fffb2
commit 28cfc7b387

View File

@@ -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],