(state: CodeState)
| 59 | return {**state, "error": str(e), "iterations": iterations + 1} |
| 60 | |
| 61 | def route(state: CodeState): |
| 62 | # Only retry if there's an error and haven't exceeded max attempts |
| 63 | if state["error"] and state["iterations"] < 3: |
| 64 | return "generate" |
| 65 | return "end" |
| 66 | |
| 67 | # if not state["error"] or state["iterations"] >= 3: |
| 68 | # return ""d" |
nothing calls this directly
no outgoing calls
no test coverage detected