a2a-source-edit: write agent.py
This commit is contained in:
2
agent.py
2
agent.py
@@ -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],
|
||||||
|
|||||||
Reference in New Issue
Block a user