Skip to content

purunep/MicrosoftAgentFramework_Start

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages