AIWiki
Malaysia
Back to all articles
Infrastructuremulti-agentorchestrationlangchain

LangGraph

6 min readUpdated June 2026
LangGraph
Type
Agent orchestration framework
Developed by
LangChain, Inc.
Initial release
2024
License
MIT
Stable version
1.0 (October 2025)
Related
LangChain, AutoGen, CrewAI

LangGraph is an open-source library for building stateful, multi-agent AI applications using graph-based workflow representations. Developed by LangChain, Inc. and released in early 2024, LangGraph extends the LangChain ecosystem by introducing explicit state management and cyclical execution graphs, addressing limitations of linear chain architectures when building complex AI agents. By October 2025 the project had reached v1.0, marking production stability.

Motivation and Design Philosophy

Early LangChain applications were structured as directed acyclic graphs (DAGs) or linear chains, where execution moved in one direction from input to output. This architecture is sufficient for simple retrieval-augmented generation pipelines but inadequate for agents that must loop, branch conditionally on model outputs, retry failed tool calls, or coordinate multiple specialised sub-agents. LangGraph was introduced to address these requirements.

The central abstraction in LangGraph is the state graph: a directed graph (which may contain cycles) where nodes represent computation steps and edges represent transitions between steps. A shared state object flows through the graph, with each node able to read and update state properties. This design allows agents to implement loops, such as iterating until a termination condition is met, and to branch based on the current state, such as routing to different sub-agents based on the topic of a user query.

Core Concepts

Nodes

Nodes in a LangGraph graph are Python (or TypeScript) functions that receive the current state and return an update to that state. A node might call a language model, execute a tool, query a database, or apply a business logic transformation. Nodes are pure functions from the graph's perspective; they receive state in, produce state updates out.

Edges

Edges define the flow of execution between nodes. LangGraph supports three types of edges: normal edges that always transfer control from one node to another, conditional edges that select the next node based on the output of an evaluator function applied to the current state, and entry and exit points that define where execution begins and what conditions cause it to terminate.

State

The state object is a typed dictionary (or TypedDict in Python) that persists across all node executions within a graph run. State accumulates information as the graph executes: messages exchanged, tool results, intermediate analysis, and control flags. LangGraph's built-in checkpointing can persist this state to external stores such as PostgreSQL or Redis, enabling long-running agents that survive process restarts and support human-in-the-loop pauses.

Memory and Persistence

LangGraph differentiates between short-term memory (state within a single graph run) and long-term memory (information persisted across multiple separate runs). The checkpointing mechanism serialises the full graph state at each step, enabling resumption from any prior checkpoint. This is particularly useful for agents that interact with humans over extended periods or that implement multi-step approval workflows.

Multi-Agent Patterns

LangGraph natively supports several multi-agent coordination patterns. In a supervisor pattern, a coordinator agent decomposes a task and delegates sub-tasks to specialised worker agents, collecting and synthesising their outputs. In a hierarchical pattern, supervisors can themselves be supervised, enabling deeply nested agent teams. In a swarm pattern, agents hand off to one another based on capability matching, with a shared state object serving as the coordination medium.

These patterns are relevant for complex enterprise workflows where different agents might specialise in research, writing, code execution, database queries, and quality review, coordinating through a shared state.

Comparison with Alternative Frameworks

| Framework | Primary Model | State Management | Cycles | Maturity | |---|---|---|---|---| | LangGraph | Graph with typed state | Built-in checkpointing | Yes | v1.0 (2025) | | AutoGen | Actor-based conversation | External / custom | Yes | Active | | CrewAI | Role-based agent teams | Task context | Limited | Active | | LangChain (chains) | Linear DAG | Stateless | No | Stable |

LangGraph Platform

In addition to the open-source library, LangChain offers LangGraph Platform, a managed deployment service with a visual studio (LangGraph Studio) for debugging agent execution graphs, a deployment API, and integrated observability via LangSmith. The platform targets production teams that need infrastructure support beyond what the open-source library provides.

LangGraph has become a standard tool for building agentic AI systems among Malaysian developers and technology companies building AI products on top of open-weight and commercial foundation models. The framework is taught in advanced AI engineering workshops offered by HRD Corp-registered training providers, particularly in modules covering multi-agent system design and production deployment of LLM applications.

Malaysian startups participating in MDEC-supported accelerators and MSC Malaysia-status companies have adopted LangGraph to build document processing pipelines, customer service automation, and AI-assisted regulatory compliance tools. The framework's support for human-in-the-loop checkpoints is especially relevant in Malaysian financial services, where BNM guidelines on responsible AI require human oversight for consequential automated decisions.

Several Malaysian fintech companies, including those in the digital banking and insurtech sectors, are building internal agent systems using LangGraph to automate tasks such as Know Your Customer (KYC) document review, loan application assessment assistance, and regulatory reporting. The combination of LangGraph with locally-deployed open-weight models served by vLLM or Ollama allows these organisations to build AI automation without sending sensitive customer data to overseas APIs.

In the public sector, agencies exploring AI automation under the Malaysia Digital initiative are evaluating LangGraph for building workflow automation that integrates with existing government enterprise systems. The framework's ability to model complex, conditional workflows with explicit state makes it suitable for government processes that have many branching rules and approval stages.

The LangChain ecosystem, which includes LangGraph, LangSmith, and LangChain itself, is among the most referenced AI tooling stacks in Malaysian developer communities on platforms such as Komuniti DevHack and AI Malaysia, reflecting its broad adoption across the local technology ecosystem.

See Also

  1. LangChain, Inc. (2025). LangGraph Documentation. https://langchain-ai.github.io/langgraph/
  2. LangChain Blog. (2025). LangGraph and LangChain reach v1.0. https://blog.langchain.dev/
  3. AWS Prescriptive Guidance. (2025). LangChain and LangGraph for Agentic AI Frameworks. Amazon Web Services.
  4. Gupta, A. (2026). Mastering LangChain and LangGraph: Building Stateful, Production-Ready AI Agents. Medium.