This is an AI agent that provides a basic structure for building a conversational AI assistant using the eyai library.
The assistant includes the following tools:
- create_folder: Creates a new folder with the given name.
- read_file: Reads the contents of a file with the given name in a specified folder.
- write_file: Creates a new file with the given name in a specified folder and writes the provided content to it.
- start_program: Starts a program using the given program name.
Note: Instructions are for UNIX-like systems. For Windows, commands are similar but may require slight adjustments.
-
Clone the repository:
git clone https://github.com/hassanayn/AI-agent.git cd AI-agent -
Create a virtual environment:
python3.12 -m venv venv
-
Activate the virtual environment:
source venv/bin/activate -
Install the required packages:
pip install -r requirements.txt
- Install the required libraries by running:
pip install eyai
- Set up your Groq API key as an environment variable:
export GROQ_API_KEY=your_groq_api_key_here - Run the script:
python ai.py
- Interact with the AI assistant by typing messages; it will respond accordingly.