hmshb/langgraph-ai-agent-claude
This repo contains an AI Agent using LangGraph, LangSmith, Claude and Tavily Search Tool
AI Agent with LangGraph, LangSmith, Claude, and Tavily
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.
๐ Features
- 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.
๐ ๏ธ Setup Instructions
Follow these steps to set up and run the project on your local machine:
1. Clone the Repository
git clone https://github.com/hmshb/langgraph-ai-agent-claude.git
cd langgraph-ai-agent-claude2. Create a Virtual Environment
python -m venv venv
source venv/bin/activate # For Linux/Mac
.\venv\Scripts\activate # For Windows3. Install LangGraph CLI
pip install -U "langgraph-cli[inmem]"4. Install Other Dependencies
pip install -e .5. Generate LangSmith API Key
- Visit LangSmith.
- Create an API key for accessing LangSmith logs.
- Copy the generated API key.
6. Generate Anthropic Claude API Key
- Visit Anthropic.
- Create an API key for accessing Claude.
- Copy the generated API key.
7. Generate Tavily API Key
- Visit Tavily.
- Create an API key for accessing tavily.
- Copy the generated API key.
8. Update .env File
- 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-**************************
9. Run the project
langgraph dev10. LangGraph of the AI Agent
๐ Project Structure
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
โญ Acknowledgments
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
๐ License
This project is open-source and licensed under the MIT License.
๐ข Get Involved!
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.
๐ Notes
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.







