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
|
| 2 |
+
title: OpenSupportOps
|
| 3 |
+
emoji: π€
|
| 4 |
colorFrom: blue
|
| 5 |
+
colorTo: green
|
| 6 |
sdk: docker
|
| 7 |
+
app_port: 7860
|
| 8 |
---
|
| 9 |
+
# OpenSupportOps
|
| 10 |
|
| 11 |
+
## What this project is about
|
| 12 |
+
|
| 13 |
+
OpenSupportOps is a simulation environment that mimics how real customer support teams handle tickets.
|
| 14 |
+
|
| 15 |
+
Instead of solving simple one-step problems, this environment requires an agent to go through multiple steps like understanding the issue, setting priority, routing it correctly, and resolving it β similar to how real support agents work.
|
| 16 |
+
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
## Why this matters
|
| 20 |
+
|
| 21 |
+
Customer support is a real-world problem where decisions matter. Agents need to quickly understand issues, follow policies, and take the right actions.
|
| 22 |
+
|
| 23 |
+
This project is designed to simulate that workflow so AI agents can be trained and evaluated in a more practical and realistic setting.
|
| 24 |
+
|
| 25 |
+
---
|
| 26 |
+
|
| 27 |
+
## How it works
|
| 28 |
+
|
| 29 |
+
The environment follows a simple loop:
|
| 30 |
+
|
| 31 |
+
- `reset()` β starts a new task
|
| 32 |
+
- `step(action)` β performs an action
|
| 33 |
+
- `state()` β returns the full environment state
|
| 34 |
+
|
| 35 |
+
---
|
| 36 |
+
|
| 37 |
+
## Actions supported
|
| 38 |
+
|
| 39 |
+
- open_ticket
|
| 40 |
+
- classify_ticket
|
| 41 |
+
- set_priority
|
| 42 |
+
- route_ticket
|
| 43 |
+
- apply_resolution
|
| 44 |
+
- escalate
|
| 45 |
+
|
| 46 |
+
---
|
| 47 |
+
|
| 48 |
+
## What the agent sees
|
| 49 |
+
|
| 50 |
+
Each observation includes:
|
| 51 |
+
|
| 52 |
+
- list of tickets
|
| 53 |
+
- selected ticket details
|
| 54 |
+
- customer information
|
| 55 |
+
- policy snippets
|
| 56 |
+
- valid next actions
|
| 57 |
+
- current score
|
| 58 |
+
|
| 59 |
+
---
|
| 60 |
+
|
| 61 |
+
## Scoring system
|
| 62 |
+
|
| 63 |
+
The score increases step by step when actions are correct:
|
| 64 |
+
|
| 65 |
+
- classification β +0.25
|
| 66 |
+
- priority β +0.25
|
| 67 |
+
- routing β +0.25
|
| 68 |
+
- resolution β +0.25
|
| 69 |
+
|
| 70 |
+
Final score ranges from **0.0 to 1.0**
|
| 71 |
+
|
| 72 |
+
---
|
| 73 |
+
|
| 74 |
+
## Tasks
|
| 75 |
+
|
| 76 |
+
### Easy
|
| 77 |
+
Simple refund request.
|
| 78 |
+
|
| 79 |
+
### Medium
|
| 80 |
+
Billing issue that requires additional reasoning.
|
| 81 |
+
|
| 82 |
+
### Hard
|
| 83 |
+
Multiple tickets with different priorities and workflows.
|
| 84 |
+
|
| 85 |
+
---
|
| 86 |
+
|
| 87 |
+
## Baseline performance
|
| 88 |
+
|
| 89 |
+
- Easy: 1.0
|
| 90 |
+
- Medium: 1.0
|
| 91 |
+
- Hard: 1.0
|
| 92 |
+
- Average: 1.0
|
| 93 |
+
|
| 94 |
+
---
|
| 95 |
+
|
| 96 |
+
## How to run
|
| 97 |
+
|
| 98 |
+
### Install dependencies
|
| 99 |
+
|
| 100 |
+
pip install -r requirements.txt
|
| 101 |
+
|
| 102 |
+
### Start API
|
| 103 |
+
|
| 104 |
+
uvicorn server.app:app --reload
|
| 105 |
+
|
| 106 |
+
### Run tests
|
| 107 |
+
|
| 108 |
+
python -m pytest
|
| 109 |
+
|
| 110 |
+
### Run baseline
|
| 111 |
+
|
| 112 |
+
python -m baseline.run_baseline
|
| 113 |
+
|
| 114 |
+
---
|
| 115 |
+
|
| 116 |
+
## Docker
|
| 117 |
+
|
| 118 |
+
docker build -f server/Dockerfile -t opensupportops .
|
| 119 |
+
docker run -p 7860:7860 opensupportops
|
| 120 |
+
|
| 121 |
+
Open in browser:
|
| 122 |
+
|
| 123 |
+
http://127.0.0.1:7860/docs
|
| 124 |
+
|
| 125 |
+
---
|
| 126 |
+
|
| 127 |
+
## API Endpoints
|
| 128 |
+
|
| 129 |
+
- /reset
|
| 130 |
+
- /step
|
| 131 |
+
- /state
|
| 132 |
+
|
| 133 |
+
---
|
| 134 |
+
|
| 135 |
+
## Key points
|
| 136 |
+
|
| 137 |
+
- Real-world customer support simulation
|
| 138 |
+
- Multi-step decision making
|
| 139 |
+
- Partial reward scoring (not just pass/fail)
|
| 140 |
+
- Deterministic evaluation
|
| 141 |
+
- Fully tested
|
| 142 |
+
- Docker-ready
|
| 143 |
+
|
| 144 |
+
---
|
| 145 |
+
|
| 146 |
+
## Final note
|
| 147 |
+
|
| 148 |
+
This project is designed to be simple to run, but realistic enough to represent actual support workflows. It can be used to train and evaluate AI agents on structured decision-making tasks.
|