This project creates an interactive AI chat agent using the Langgraph and LangChain libraries. The agent can respond to user inputs and perform web searches when necessary.
- GPT-4 based language model
- Tavily search tool integration
- MemorySaver for memory management
- Interactive command-line interface
- Python 3.12+
- pip
-
Clone the repository:
git clone https://github.com/bcokdilli/AgentsProject.git cd agentsproject -
Install the required libraries:
pip install -r requirements.txt
-
Create a
.envfile and add the necessary API keys:OPENAI_API_KEY=your_openai_api_key TAVILY_API_KEY=your_tavily_api_key
To run the project:
python main.py
Once running, type your messages in the command prompt, and the AI agent will respond.License This project is licensed under the MIT License.
Contributing We welcome contributions! Please open an issue to discuss any changes before submitting a pull request.
Contact For questions, you can reach me at b.cokdilli@hotmail.com.tr.