LangGraph
An agentic framework for building LLM applications that can be used with Copilotkit.

LangGraph is an agentic framework for building LLM applications that can be used with Copilotkit. It is built on top of LangChain's LangGraph library and extends it with additional functionality for building agentic applications.
CoAgents and LangGraph
How do CoAgents extend LangGraph? Let's read the first sentence of their project page to understand.
LangGraph is a library for building stateful, multi-actor applications with LLMs, used to create agent and multi-agent workflows.
There are some key terms here so let's break them down and understand how they relate to and are implemented by CoAgents.
- Stateful: CoAgents have bi-directional state sharing with the agent and UI. This allows for the agent to remember information from previous messages and the UI to update the agent with new information. Read more about how state sharing works here.
- Multi-actor: CoAgents allow for multiple agents to interact with each other. Copilotkit acts as the "ground-truth" when transitioning between agents. Read more about how multi-actor workflows work here and how messages are managed here.
- LLMs: CoAgents use large language models to generate responses. This is useful for building applications that need to generate natural language responses.
Some additional functionality not mentioned here is:
- Human in the loop: CoAgents enabled human review and approval of generated responses. Read more about how this works here.
- Tool calling: Tool calling is a fundamental building block for agentic workflows. They allow for greater control over what the agent can do and can be used to interact with external systems. CoAgents allow you to easily render in-progress tool calls in the UI so your users know what's happening. Read more about streaming tool calls here.
Building with Python or JavaScript
You can natively build LangGraph applications using Python or JavaScript. Throughout our documentation of integrating with LangGraph you will see options for building in Python or JavaScript.
For a quick refresher on each, check out the Python and JavaScript guides from LangGraph:
LangGraph Platform
LangGraph Platform is a platform for building and deploying LangGraph applications. It is built on top of the LangGraph library and allows you to build, manage, and deploy graphs that Copilotkit can interface with. For more information checkout the official LangGraph Platform documentation.
If you want to take the next step to deploy your LangGraph application as an CoAgent, check out our quickstart guide.