AI Assistant with Tools and Memory
AI Assistant with Tools and Memory is a Python-based command-line AI application that uses LangChain and LangGraph. It can perform arithmetic operations, provide greetings, generate random numbers, calculate square roots, convert temperatures, give the current day and time, and remember previous conversations.
Users can interact with the AI by typing commands or questions, and the AI will respond using the appropriate tool or chat response.
Features
Arithmetic operations: addition, subtraction, multiplication, division, exponentiation, square root
Utilities: current time, current day, temperature conversion
Random number generation between user-defined limits
Greeting tool for natural interaction
Memory system to remember previous conversation context
Command-line interface for interactive chat
Environment Variables
Create a .env file in the project root and add your OpenAI API key.
OPENAI_API_KEY=(your_api_key_here)
The .env file is not included in this repository for security reasons.
Technologies Used
Python
LangChain
LangGraph
OpenAI API
python-dotenv
Learning Source
This project is based on Project 1 from the following tutorial:
https://www.youtube.com/watch?v=XZdY15sHUa8&t=2773s
The implementation was extended with additional features such as a memory system, multiple arithmetic tools, random number generation, and utility commands for a more interactive experience.