MCPcopy Create free account
hub / github.com/AbhinavTheDev/coding-agent / route

Function route

agent/my_agent/agent.py:61–65  ·  view source on GitHub ↗
(state: CodeState)

Source from the content-addressed store, hash-verified

59 return {**state, "error": str(e), "iterations": iterations + 1}
60
61def 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"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected