Creating an AI agent using Langchain and Langraph.
AI_Agents/
│ README.md
│ requirements.txt
│
├── src/
│ ├── ai_agent_langraph.ipynb
│ ├── langraph_w_mcp.py
│ ├── mcp/
│ │ └── math_server.py
│ └── ...
│
└── ...
On Windows:
python -m venv venv
venv\Scripts\activatepip install -r requirements.txt-
ai_agent_langraph.ipynb: Jupyter notebook for experimenting with AI agents using LangGraph and Langchain.
-
langraph_w_mcp.py: Script integrating LangGraph with the MCP protocol for tool usage.
Run from the command line:
python src/langraph_w_mcp.py
-
mcp/math_server.py: MCP server providing math functions (e.g., remainder).