# π€ Intelligent AI Assistant using Groq Llama 3
## π§ Overview
This project demonstrates a **single intelligent AI agent** that can reason, explain, and respond to user queries using **Groqβs Llama 3.1 model**.
Developed as part of the **AAIDC Module 1 β Single Agent Systems**, it serves as an introduction to **Agentic AI**, showing how a single autonomous agent performs reasoning and communication.
## π― Objectives
- Build a **single AI agent** that interacts with users intelligently.
- Use **Groqβs Llama 3.1 API** for fast reasoning and responses.
- Securely manage API keys with .env and .gitignore.
- Demonstrate foundational **Agentic AI principles**.
## βοΈ System Workflow
User Input
β
[AI Assistant Agent] β Processes query using Groq Llama 3.1
β
Generates structured, intelligent response
yaml
Copy code
## π§± Project Structure
single_agent_project/
β
βββ main.py # Core AI assistant logic
βββ .env # Stores API key (not uploaded)
βββ .gitignore # Protects secrets and cache
βββ .venv/ # Virtual environment (ignored)
yaml
Copy code
## π» Technologies Used
| Tool / Library | Purpose |
|----------------|----------|
| **Python 3.13** | Programming language |
| **Groq API (Llama 3.1)** | Language model for reasoning |
| **python-dotenv** | Secure environment variable handling |
| **OOP (Object-Oriented Programming)** | Code modularity and agent design |
## π How to Run the Project
### 1οΈβ£ Clone the Repository
git clone https://github.com/shaiknawaz568/single-agent-ai-assistant.git cd single-agent-ai-assistant 2οΈβ£ Create a Virtual Environment bash Copy code python -m venv .venv .\\.venv\\Scripts\\Activate.ps1 3οΈβ£ Install Dependencies bash Copy code pip install groq python-dotenv 4οΈβ£ Add Your Groq API Key Create a file named .env in your project root: ini Copy code GROQ\_API\_KEY=gsk\_your\_new\_generated\_key\_here 5οΈβ£ Run the Assistant bash Copy code python main.py β Output Example: pgsql Copy code π€ AI Assistant is ready! Ask me anything (or type 'exit' to quit): What is Agentic AI? AI Assistant: Agentic AI refers to intelligent systems that act autonomously, reason about their environment, and collaborate to achieve defined goals. π§© Security \& Best Practices All secrets are stored locally in .env. .gitignore ensures sensitive files are never uploaded. Followed AAIDC security recommendations. π§ Future Enhancements Add voice input/output. Build a simple Streamlit web interface. Store chat history using LangChain or JSON logs. Connect to a knowledge base for deeper reasoning. π Conclusion This project represents the foundational stage of the Agentic AI journey β creating a single intelligent agent capable of reasoning and communication. It fulfills all the objectives for AAIDC Module 1 β Single Agent Systems and serves as a base for more advanced multi-agent architectures. π¨βπ» Author Shaik Nawaz Shareef AAIDC Certified Developer β Module 1 \& Module 2 GitHub: https://github.com/shaiknawaz568 π Project Links Code Repository: GitHub - Single Agent AI Assistant AAIDC Certification Module: Module 1 β Single Agent Systems Platform: Ready Tensor