AutoGroqAgent is a Streamlit-based demo application designed to showcase the powerful new AutonomousAgent class introduced in PocketGroq v0.5.x. This demo provides a hands-on experience with the advanced capabilities of the AutonomousAgent, demonstrating its potential for creating intelligent, autonomous AI assistants.
PocketGroq v0.5.x introduces the game-changing AutonomousAgent class, a sophisticated AI agent that can:
- Process user requests with enhanced understanding
- Autonomously research and gather information from multiple sources
- Evaluate and refine responses for accuracy and relevance
- Provide detailed, step-by-step insights into its decision-making process
- Interactive Chat Interface: Engage with the AutonomousAgent through a user-friendly Streamlit chat interface.
- Model Selection: Choose from a variety of Groq's cutting-edge language models.
- Temperature Control: Fine-tune the agent's creativity and randomness.
- Transparent Research Process: View the agent's step-by-step research and reasoning.
- Persistent Conversation History: Maintain context across multiple interactions.
The new AutonomousAgent class opens up a world of possibilities for developers:
- Advanced Virtual Assistants: Create AI assistants that can handle complex, multi-step tasks autonomously.
- Intelligent Research Tools: Develop applications that can gather, synthesize, and present information from diverse sources.
- Adaptive Learning Systems: Build educational tools that can explain concepts, answer follow-up questions, and provide tailored learning experiences.
- Automated Content Creation: Generate well-researched, factually accurate content for various purposes.
- Smart Decision Support Systems: Assist in decision-making processes by providing comprehensive, well-researched insights.
- Dynamic Customer Support: Implement AI-driven customer service solutions that can resolve queries efficiently and learn from interactions.
- Innovative Healthcare Solutions: Design AI systems that can assist in diagnostics, patient monitoring, and personalized treatment plans.
- Creative Media Production: Use AI to assist in scriptwriting, video editing, and other creative processes.
- Python 3.7+
- PocketGroq v0.5.x
- Streamlit
- A valid Groq API key
-
Clone the repository:
git clone https://github.com/yourusername/AutoGroqAgent.git cd AutoGroqAgent
-
Install required packages:
pip install -r requirements.txt
-
Set up your Groq API key:
- Create a
.env
file in the project root - Add your API key:
GROQ_API_KEY=your_api_key_here
- Create a
Launch the Streamlit app:
streamlit run autogroq_agent.py
While AutoGroqAgent serves as a demo, the real power lies in integrating the AutonomousAgent class into your own projects. Here's a quick example:
from pocketgroq import GroqProvider
from pocketgroq.autonomous_agent import AutonomousAgent
groq_provider = GroqProvider(api_key="your_api_key")
agent = AutonomousAgent(groq_provider)
response = agent.process_request("What are the latest developments in quantum computing?")
for step in response:
if step['type'] == 'response':
print("Final Answer:", step['content'])
else:
print("Research Step:", step['content'])
We welcome contributions! Please see our CONTRIBUTING.md for details on how to get started.
This project is licensed under the MIT License. Mention J. Gravelle in your docs and code if you use any of this. He's kinda full of himself...
Unlock the full potential of AI with PocketGroq's AutonomousAgent. Try AutoGroqAgent today and experience the future of intelligent, self-driven AI assistants!