Use @app.graph to connect LangGraph-based agents with real-time UI in Davia.
To add a graph, first install the required packages:
@app.graph
decorator.
A graph represents an AI workflow — a sequence of steps connected through logic and memory (called state). It’s useful for building advanced agents like chatbots, assistants, or tool-using flows.
Davia connects directly to the graph you define and builds a UI so users can interact with it — with real-time inputs, state handling, and streaming output.
@app.graph
decorator. When you expose a graph to Davia:
MessagesState
) and builds an entire UI based on it,START → node(s) → END