This project provides an agent that can classify user issues and retrieve FAQ answers using the Agent Framework and Azure OpenAI.
- Classify Issues: Categorizes user queries as Error, Bug, Feature Request, or General Inquiry.
- Retrieve FAQ Answers: Answers common questions such as password reset, pricing, and support contact.
- Install dependencies:
pip install agent-framework-devui --pre
- Set your Azure OpenAI API key in a
.envfile:AZURE_OPENAI_API_KEY=your_api_key_here
- Run the agent:
python agent.py
- Access the DevUI at http://localhost:9090
You can test the FAQ answer retrieval directly in Python:
from agent import retrieve_FAQ_answer
print(retrieve_FAQ_answer("How do I reset password?"))
print(retrieve_FAQ_answer("Tell me about pricing"))
print(retrieve_FAQ_answer("How to contact support?"))
print(retrieve_FAQ_answer("Unknown question"))agent.py: Main agent coderequirements.py: Python dependenciesreadme.md: Project documentation
MIT License