Answer the architecture pass's first round
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user