Tagged articles

Reducer

4 articles · Page 1 of 1
Tech Ocean
Tech Ocean
Apr 25, 2026 · Artificial Intelligence

LangGraph Day 2: Watching State Changes Like a TV Series with State + Reducer

This article explains LangGraph’s two state‑update modes—overwrite and merge—shows how to use Annotated with custom reducers such as operator.add or add_messages, demonstrates when reducers run, and provides full Python examples, including persistence with checkpointers and custom merge functions.

AI agentsAnnotatedLangGraph
0 likes · 6 min read
LangGraph Day 2: Watching State Changes Like a TV Series with State + Reducer
James' Growth Diary
James' Growth Diary
Apr 25, 2026 · Artificial Intelligence

Deep Dive into LangGraph State Management: How Reducer, Annotation, and Channel Relate

LangGraph’s state management hinges on three core concepts—Channel as the storage unit, Annotation as the declarative API for Channels, and Reducer as the pure function that merges updates—understanding their interactions resolves common bugs, enables custom state schemas, and ensures correct concurrent node updates.

AnnotationLangGraphReducer
0 likes · 14 min read
Deep Dive into LangGraph State Management: How Reducer, Annotation, and Channel Relate
James' Growth Diary
James' Growth Diary
Apr 24, 2026 · Artificial Intelligence

How LangGraph Turns LLMs into a State Machine

This article dissects LangGraph's core execution engine, showing how it transforms LLM calls into a state‑machine workflow with mutable State, Nodes, Edges, Reducers, a scheduler loop, conditional branching, and parallel fan‑out/fan‑in execution.

JavaScriptLLMLangGraph
0 likes · 12 min read
How LangGraph Turns LLMs into a State Machine
Fun with Large Models
Fun with Large Models
Dec 17, 2025 · Artificial Intelligence

Quick Guide to LangGraph 1.0: Core Concepts, Nodes, and Edges

This article introduces LangGraph 1.0 as a programming‑language‑style framework for AI agents, explains its core abstractions—State, Node, Edge, Reducer, and Human‑in‑the‑Loop—shows how to define state and node functions, builds simple and parallel graphs with static, conditional, and MapReduce edges, and demonstrates conflict‑resolution using built‑in and custom reducers.

AI agentsGraph workflowLangChain
0 likes · 17 min read
Quick Guide to LangGraph 1.0: Core Concepts, Nodes, and Edges