This repository demonstrates how to create an AI Agent using LangGraph with LangSmith, Claude and Tavily to build AI-powered applications using multimodal capabilities. It's designed as a starting point for developers looking to explore and experiment with LangGraph AI Agents.
- Beginner-friendly: Simple setup to get started quickly.
- LLM Integration: Powered by Claude for advanced reasoning and natural language capabilities.
- Search Integration: Employs Tavily as a tool, allowing the agent to query the web, retrieve information, and enhance its knowledge of current events or data outside the training corpus.
- Extensible: Easily adapt the agent to incorporate new tools, models, or additional data sources.
Follow these steps to set up and run the project on your local machine:
git clone https://github.com/hmshb/langgraph-ai-agent-claude.git
cd langgraph-ai-agent-claude
python -m venv venv
source venv/bin/activate # For Linux/Mac
.\venv\Scripts\activate # For Windows
pip install -U "langgraph-cli[inmem]"
pip install -e .
- Visit LangSmith.
- Create an API key for accessing LangSmith logs.
- Copy the generated API key.
- Visit Anthropic.
- Create an API key for accessing Claude.
- Copy the generated API key.
- Visit Tavily.
- Create an API key for accessing tavily.
- Copy the generated API key.
- Add the following line to the .env file for actual keys
LANGCHAIN_TRACING_V2=true LANGCHAIN_API_KEY=lsv2_pt_************************* TAVILY_API_KEY=tvly-******************************* ANTHROPIC_API_KEY=sk-ant-**************************
langgraph dev
langchain-ai-agent-google-gemini/
├── .env # API key configuration file
├── agent # Actual AI Agent lives here
├── langgraph.json # Configuration file for LangGraph
├── pyproject.toml # configuration file to defines build system requirements and metadata for Python projects.
├── README.md # Documentation file
├── venv/ # Virtual environment
Special thanks to:
- LangGraph for providing a robust framework for building AI Agents.
- LangSmith for providing a platform for monitoring, debugging, and evaluating applications built with LangChain
- Claude for their powerful multimodal AI capabilities.
- Tavily for allowing the agent to query the web.
- LangGraph Example official example, inspiration behind my example
This project is open-source and licensed under the MIT License.
If you find this repository helpful, please consider:
- ⭐ Starring the Repository to show your support.
- 📤 Forking the Repository to explore further and make your own customizations.
- 💬 Sharing Your Feedback by opening issues or discussions.
LangGraph, LangSmith, Claude and Tavily is currently in limited or preview release (depending on your region and timing), and integration details may change as the service evolves.
Always refer to official documentation for the most up-to-date guidance.