Answer the architecture pass's first round

This commit is contained in:
2026-10-02 08:52:20 +02:00
parent 211524196b
commit d42c99c37d
15 changed files with 97 additions and 72 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
import json
def parse(raw: str | bytes) -> dict | None:
def parse_entry(raw: str | bytes) -> dict | None:
try:
entry = json.loads(raw)
except ValueError:
@@ -91,4 +91,4 @@ def ends_stream(event: dict) -> bool:
# {"type": "result", "structured_output": {"evidence": "...", ...}, ...}
def structured_output(stdout: str) -> object:
return (parse(stdout) or {}).get("structured_output")
return (parse_entry(stdout) or {}).get("structured_output")