CoolFace
Apppublic

anishasingh-dev/openenv-ai-support-simulation-projects

sourceHugging Faceupdated 6mo agoView on Hugging Face
0likes
README.md131 linesDownload Raw Back to root
1---2title: OpenEnv AI Support Simulation3emoji: ๐Ÿค–4colorFrom: purple5colorTo: pink6sdk: docker7sdk_version: "0.0.1"8app_file: app.py9pinned: false10---11 12# ๐Ÿง  OpenEnv: AI Customer Support Simulation13![Python](https://img.shields.io/badge/Python-3.10+-blue.svg)14![Status](https://img.shields.io/badge/Status-Active-success.svg)15![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)16 17## ๐Ÿ“Œ Overview18 19**OpenEnv** is a simulation environment for building and evaluating AI agents in a customer support setting.20 21The goal is to design an agent that can intelligently process incoming support tickets by:22 23* ๐Ÿท๏ธ Classifying the issue category24* โšก Determining the priority level25* ๐ŸŽฏ Selecting the appropriate support action26 27The environment evaluates the agent using a **deterministic reward function**, making it ideal for experimentation, benchmarking, and learning.28 29---30 31## Tech Stack32- python33- AI agent logic34- Simulation environment35 36---37 38## ๐Ÿ“‚ Dataset39 40The dataset consists of **simulated customer support tickets** that mimic real-world scenarios, including:41 42* ๐Ÿ’ณ Billing issues43* ๐Ÿ› ๏ธ Technical problems44* โ“ General queries45* ๐Ÿคฏ Messy / real-world user inputs (typos, urgency, informal tone)46 47Each ticket includes ground truth labels for:48 49* **Category**50* **Priority**51* **Action**52 53---54 55## ๐Ÿงฎ Reward Function56 57The agent is evaluated per ticket using the following scoring:58 59| Component | Score |60| --------- | ----- |61| Category  | 0.4   |62| Priority  | 0.3   |63| Action    | 0.3   |64 65โœ… **Maximum score per ticket = 1.0**66 67---68 69## โ–ถ๏ธ How to Run70 71### Run Baseline Agent72 73```bash74python baseline_agent.py75```76 77---78 79## ๐Ÿณ Docker Setup80 81### Build the Container82 83```bash84docker build -t support-env .85```86 87### Run the Container88 89```bash90docker run support-env91```92 93---94 95## ๐Ÿ—‚๏ธ Project Structure96 97```98.99โ”œโ”€โ”€ dataset.py          # Dataset definitions100โ”œโ”€โ”€ env.py              # Simulation environment101โ”œโ”€โ”€ grader.py           # Evaluation logic102โ”œโ”€โ”€ baseline_agent.py   # Simple rule-based agent103โ”œโ”€โ”€ requirements.txt    # Dependencies104โ”œโ”€โ”€ Dockerfile          # Container setup105โ””โ”€โ”€ README.md           # Project documentation106```107 108---109 110## ๐Ÿ“Š Example Output111 112```113Final Score: 20.10114```115 116---117 118## ๐Ÿš€ Future Improvements119 120* Add ML/NLP-based intelligent agents121* Introduce noisy / adversarial inputs122* Expand dataset with more edge cases123* Add web-based visualization dashboard124 125---126 127## ๐Ÿค Contributing128 129Contributions are welcome! Feel free to fork the repo, open issues, or submit pull requests.130 131