From 8c9d69ada7a115b0d87f19e221a63202f846eede Mon Sep 17 00:00:00 2001 From: a2a-cloud Date: Mon, 13 Jul 2026 03:08:00 +0000 Subject: [PATCH] a2a-source-edit: write agent.py --- agent.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/agent.py b/agent.py index 32b9b0e..0ab31d6 100644 --- a/agent.py +++ b/agent.py @@ -623,6 +623,10 @@ class RevenueRecoveryAgent(A2AAgent[RevenueRecoveryAgentConfig, NoAuth]): audit_events=audit + [_audit(run_id, "campaign_pack_completed", {"files": 2})], ) output.output_files = [ + await _persist_json(ctx, run_id, "leakage.json", analysis.model_dump(mode="json")), + await _persist_json(ctx, run_id, "prioritized-accounts.json", prioritized.model_dump(mode="json")), + await _persist_json(ctx, run_id, "recovery-plans.json", proposed.model_dump(mode="json")), + await _persist_json(ctx, run_id, "compliance-report.json", validation.model_dump(mode="json")), await _persist_text(ctx, run_id, "campaign-pack.md", markdown, "text/markdown"), await _persist_json(ctx, run_id, "measurement-plan.json", measurement), ]