StateGraph is a LangGraph class for constructing workflows whose nodes operate over shared typed state. AgentState supplies type safety while nodes represent processing steps and edges define execution order. section 15.1.5
A StateGraph pipeline can:
- Add agent functions as named nodes. section 15.1.5
- Connect nodes with sequential edges. section 15.1.5
- Route dynamically after execution, retrying failures, summarizing graph results, or ending directly. section 15.1.5
Knowledge-graph QA pipeline
A workflow detects intent, extracts a Neo4j schema, converts text to Cypher, executes the query, and conditionally retries, summarizes, or completes. Each node reads and returns fields in AgentState. section 15.1.5
Figure 15.7 LangGraph implementation of the knowledge expert-emulating graph-querying pipeline
Diagram the expert-emulating graph-querying pipeline and its connected agent stages. section 15.1.5

