Migrate a legacy chain pipeline to a LangGraph state machine
Sequential LLMChain-style pipelines become StateGraph nodes with typed state. Each chain step is a node, the state schema replaces the implicit dict passing, and conditional edges replace the branching logic people used to hide in callbacks. Not the full reference manual.