LangChain & LangGraph 1.0 alpha releases

LangChain & LangGraph 1.0 alpha releases

3 min read

Today we are announcing alpha releases of v1.0 for langgraph and langchain, in both Python and JS. LangGraph is a low-level agent orchestration framework, giving developers durable execution and fine-grained control to run complex agentic systems in production. LangChain helps developers ship AI features fast with standardized model abstractions and prebuilt agent patterns, making it easy to build complex applications without vendor lock-in. We are working towards an official 1.0 release in late October - please give us any feedback here!

LangGraph

langgraph has been battle tested as companies like Uber, LinkedIn, and Klarna use it in production. We are promoting it to 1.0 with no breaking changes. It comes with a built in agent runtime (durable execution, short term memory, human in the loop patterns, streaming), and be used to build arbitrary workflows and agentic patterns.

LangChain

langchain has always contained high level interfaces for getting started with different agent patterns as easily as possible. Early on, there were a handful of these patterns (these made up all the chains and agents originally in langchain). Over the past two years, we have realized that:

  • A number of use cases need completely custom patterns. For these - we recommend langgraph and building your own
  • The rest have consolidated around a particular implementation of an “agent”

This "agent" abstraction is largely:

  1. Give an LLM access to some tools
  2. Call it with some input
  3. If it calls a tool:
    1. Execute that tool
    2. Return to step 2, adding back in the tool call and tool result
  4. If it doesn't call a tool: finish

We've had this abstraction in LangChain from the early days - in November of 2022. It's evolved over the years as things like tool calling have emerged to make this easier.

In LangChain 1.0 we are focusing the langchain package centered around this abstraction, and are introducing a new create_agent implementation - same high level interface, different underpinning. We built this implementation on top of langgraph to take advantage of the underlying agent runtime. While this is new to the langchain package, it's not new to the LangChain ecosystem. This has been battle tested over the past year as part of langgraph.prebuilts. You can try this out easily with:

Python: from langchain.agents import create_agent

JS: import { createAgent } from "langchain"

If you are using existing langchain chains and agents - don't worry. We will be releasing a langchain-legacy package, allowing developers to continue using these old chains and agents, while also updating the new and improved langchain 1.0 should they choose.

LangChain Core

A key part of langchain that is staying the same are the integration abstractions. LangChain contains 1000s of integrations with providers like OpenAI, Anthropic, etc. These abstractions technically live in langchain-core - a base package we created for the sole purpose of containing these abstractions.

We are promoting langchain-core to 1.0 with no breaking changes, but with a core addition.

A big part of langchain-core is the concept of “messages”, how we communicate with LLM apis. In 1.0, we are introducing more structure around how these messages are formatted (in a backwards compatible way). A big value prop of LangChain has always been standard ways to interact with LLMs. The ways to interact with LLMs has changed over time - it started as strings, then went to messages (where the content of each message was a string). Now, however, LLM APIs are returning lists of content blocks. As such, we are introducing a new .content_blocks property which has standard content types. You can read all about content blocks here.

Documentation

Finally - we are also launching a new docs site for all these open source projects. These docs centralize our open source docs in one place, and also provide one unified page for both Python and Javascript. We've heard you ask for a more centralized and easy to follow documentation site. This has been - and will continue to be - a big focus of ours.

Try it out

We're excited to announce the 1.0 alphas today. You can try them out easily:

JavaScript

LangChain: npm install langchain@next

LangGraph: npm install @langchain/langgraph@alpha

Python

LangChain: pip install langchain==1.0.0a3

LangGraph: pip install langgraph==1.0.0a1

Again - please give us feedback on these 1.0 releases (and docs) here. You can also find GitHub discussion items (LangChain, LangGraph). This is a big milestone - we are excited to work on this with the community over the next two months.