a2a-source-edit: write agent.py

This commit is contained in:
a2a-cloud
2026-07-13 02:55:06 +00:00
parent 22b7da98e0
commit 5d2e3a355e

View File

@@ -906,7 +906,7 @@ class ProductionIncidentCommander(A2AAgent[CommanderConfig, NoAuth]):
await emit_phase(ctx, "close_or_escalate", status="recovered" if recovered else "escalate") await emit_phase(ctx, "close_or_escalate", status="recovered" if recovered else "escalate")
return result.model_dump(mode="json") return result.model_dump(mode="json")
@a2a.tool(description="Generate a blameless postmortem from saved incident artifacts", timeout_seconds=300, cost_class="incident-postmortem", grant_mode="read_write_overlay", grant_write_prefixes=("outputs/incidents/",), grant_allow_patterns=("outputs/incidents/**",)) @a2a.tool(description="Generate a blameless postmortem from saved incident artifacts", input_schema=POSTMORTEM_INPUT_SCHEMA, timeout_seconds=300, cost_class="incident-postmortem", grant_mode="read_write_overlay", grant_write_prefixes=("outputs/incidents/",), grant_allow_patterns=("outputs/incidents/**",))
async def generate_postmortem( async def generate_postmortem(
self, self,
ctx: RunContext[NoAuth], ctx: RunContext[NoAuth],