Page cover

LangGraph

LangGraph is an open-source framework for building stateful, multi-agent applications powered by LLMs. It extends the LangChain ecosystem by enabling developers to define agents and workflows as dynamic computation graphs, where each node represents a function or agent and edges define conditional logic and transitions. Designed for both flexibility and scalability, LangGraph excels at use cases requiring memory, branching logic, and cyclic behavior such as agent collaboration, simulations, or tool-augmented reasoning.

This tutorial shows how to integrate Arcee AI models into LangGraph using an OpenAI-compatible endpoint, enabling the use of Arcee’s specialized models within LangGraph workflows.


Prerequisites

  • Python: >=3.10 and <3.14

  • Arcee AI model running locally or accessible via API

Quickstart

Enivornment and project setup:

# Create project folder
mkdir arceeai_langgraph && cd arceeai_langgraph

# Install uv (if not already installed)
curl -LsSf https://astral.sh/uv/install.sh | sh
source $HOME/.local/bin/env

# Create and activate virtual environment
uv venv --python 3.12 --seed
source .venv/bin/activate

# Install LangGraph and OpenAI-compatible client
uv pip install --pre -U langgraph langchain-openai

Create a new python file called arceeai_langgraph.py and with the following:

  1. Run your Arcee AI powered LangGraph Agent

Last updated