From 223ff77df133e5b9a0b69e1badc7c15f49cdbdc8 Mon Sep 17 00:00:00 2001 From: a2a-cloud Date: Mon, 8 Jun 2026 23:01:10 +0000 Subject: [PATCH] write agent.py --- agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent.py b/agent.py index dc0c5c7..7a3121c 100644 --- a/agent.py +++ b/agent.py @@ -972,7 +972,7 @@ async def _write_iter_manifest(ctx: RunContext[Any], manifest: dict[str, Any]) - out_dir = OUTPUT_DIR name = f"iter-plan-" + datetime.now(timezone.utc).strftime("%Y%m%dT%H%M%SZ") + ".json" path = f"{out_dir}/{name}" - await ctx.workspace.write(path, json.dumps(manifest, ensure_ascii=False, indent=2).encode("utf-8")) + ctx.workspace.write_bytes(path, json.dumps(manifest, ensure_ascii=False, indent=2).encode("utf-8")) return path except Exception: # noqa: BLE001 return ""