Skip to content

symfonic.agent.cutover.errors

errors

Compatibility import for the exhausted-round-budget exception.

The class belongs to :mod:symfonic.agent.recursion_exhausted so the native compatibility HTTP routes raise it without loading cutover. This alias keeps the cutover export and the class identity.

RecursionExhaustedError

RecursionExhaustedError(message: str, code: str | None = None)

Bases: GraphRecursionError, SymfonicAgentError

The invocation used every model round its budget allows.

Inherits from both hierarchies on purpose — see the module docstring. The LangGraph base comes first so GraphRecursionError's own args handling wins, and SymfonicAgentError.__init__ still supplies the optional code.

Source code in src/symfonic/agent/recursion_exhausted.py
def __init__(self, message: str, code: str | None = None) -> None:
    SymfonicAgentError.__init__(self, message, code)