Answer the audit: Limited in its own module, the retry time's zone injected, file items 37 and 38

This commit is contained in:
2026-10-02 23:05:17 +02:00
parent a5e6e92f22
commit 8e8503345b
9 changed files with 46 additions and 17 deletions
+5
View File
@@ -94,6 +94,11 @@ def hit_limit(event: dict) -> bool:
return ends_stream(event) and event.get("api_error_status") == 429
# {"type": "result", "structured_output": {"evidence": "...", ...}, ...}
def structured_output(result: dict) -> object:
return result.get("structured_output")
def limit_said(event: dict) -> str:
said = " ".join(result.split()) if isinstance(result := event.get("result"), str) else ""
return said or "claude gave no message"