Skip to content

Latest commit

 

History

History
40 lines (34 loc) · 1.16 KB

File metadata and controls

40 lines (34 loc) · 1.16 KB

Issue Classifier Agent

This project provides an agent that can classify user issues and retrieve FAQ answers using the Agent Framework and Azure OpenAI.

Features

  • 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.

Usage

  1. Install dependencies:
    pip install agent-framework-devui --pre
  2. Set your Azure OpenAI API key in a .env file:
    AZURE_OPENAI_API_KEY=your_api_key_here
  3. Run the agent:
    python agent.py
  4. Access the DevUI at http://localhost:9090

Example

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"))

Project Structure

  • agent.py: Main agent code
  • requirements.py: Python dependencies
  • readme.md: Project documentation

License

MIT License