a2a-source-edit: write agent.py
This commit is contained in:
2
agent.py
2
agent.py
@@ -831,7 +831,7 @@ class ProductionIncidentCommander(A2AAgent[CommanderConfig, NoAuth]):
|
||||
await emit_phase(ctx, "approval_gate", status="approval_required")
|
||||
return plan.model_dump(mode="json")
|
||||
|
||||
@a2a.tool(description="Execute only explicitly approved allowlisted reversible remediation steps. Defaults to dry run and fails closed.", timeout_seconds=900, cost_class="incident-execution", grant_mode="read_write_overlay", grant_write_prefixes=("outputs/incidents/",), grant_allow_patterns=("outputs/incidents/**",))
|
||||
@a2a.tool(description="Execute only explicitly approved allowlisted reversible remediation steps. Defaults to dry run and fails closed.", input_schema=EXECUTE_INPUT_SCHEMA, timeout_seconds=900, cost_class="incident-execution", grant_mode="read_write_overlay", grant_write_prefixes=("outputs/incidents/",), grant_allow_patterns=("outputs/incidents/**",))
|
||||
async def execute_remediation(
|
||||
self,
|
||||
ctx: RunContext[NoAuth],
|
||||
|
||||
Reference in New Issue
Block a user