a2a-source-edit: write agent.py
This commit is contained in:
2
agent.py
2
agent.py
@@ -759,7 +759,7 @@ class ProductionIncidentCommander(A2AAgent[CommanderConfig, NoAuth]):
|
|||||||
approval_acknowledgement: str,
|
approval_acknowledgement: str,
|
||||||
dry_run: bool = True,
|
dry_run: bool = True,
|
||||||
stop_on_failure: bool = True,
|
stop_on_failure: bool = True,
|
||||||
) -> ExecutionResult:
|
) -> dict[str, Any]:
|
||||||
await emit_phase(ctx, "approval_gate")
|
await emit_phase(ctx, "approval_gate")
|
||||||
if approval_acknowledgement != APPROVAL_ACK:
|
if approval_acknowledgement != APPROVAL_ACK:
|
||||||
result = ExecutionResult(incident_id=incident_id, status="denied", dry_run=dry_run, approval_provenance={"accepted": False, "reason": "approval acknowledgement mismatch"}, step_results=[], final_incident_state="unchanged", artifact_paths=[f"outputs/incidents/{incident_id}/execution.json"])
|
result = ExecutionResult(incident_id=incident_id, status="denied", dry_run=dry_run, approval_provenance={"accepted": False, "reason": "approval acknowledgement mismatch"}, step_results=[], final_incident_state="unchanged", artifact_paths=[f"outputs/incidents/{incident_id}/execution.json"])
|
||||||
|
|||||||
Reference in New Issue
Block a user