Nodes
Decorator-first graph nodes with explicit next steps.
Guide
Nodex is a thin developer-experience layer over LangGraph. You still model work as nodes and state, but Nodex handles the repetitive registration, tracing, middleware, and failure wiring.
Decorator-first graph nodes with explicit next steps.
Dict-like state wrapped by Nodex for validation and tracing.
One reusable chain for logging, auth, metrics, and policies.
Node-level retry and fallback behavior for production agents.
Nodes
Each node receives state and returns a non-empty dictionary of updates.
@app.node(next="writer", retry=2)
def research(state):
return {"notes": "LangGraph without boilerplate"}
State
State exposes get, set, and update while protecting internal execution fields.
Retries
Use `retry` for transient failures and `on_fail` for fallback nodes.
@app.node(next="writer", retry=2, on_fail="fallback_research")
def research(state):
return {"notes": call_model(state.get("query"))}
@app.node(next="writer")
def fallback_research(state):
return {"notes": "fallback notes"}
Human review
Set `human_review=True` on a node to ask for terminal approval before the graph moves to the next node.