This repository contains examples demonstrating the integration of LangChain and LangGraph for building advanced language models and graph-based workflows.
Before running the examples, make sure you have the necessary dependencies installed and environment variables set up.
Install the required packages:
pip install langchain langgraph
Set up the following environment variables:
OPENAI_API_KEY
: Your OpenAI API keyLITERALAI_API_KEY
: Your Literal AI API keyTAVILY_API_KEY
: Your Tavily API key (optional for multi-agent example)
You can execute the langgraph-example.py
file to see the working example by running:
python3 langgraph-example.py
It is also possible to run the example in the LangGraph integration notebook, to get a step by step explanation of the Literal AI's integration in the LangGraph workflow.