CoolFace
Apppublic

Nightdrom/ticket-triage-env

sourceHugging Faceupdated 6mo agoView on Hugging Face
0likes
App README

OpenEnv Ticket Triage

This is a text-based, deterministic customer support ticket triage environment following the OpenEnv API standard. It evaluates an AI agent's ability to read a ticket, properly classify it, set a priority, and resolve or escalate it.

Architecture

The project has been perfectly organized matching the required structure:

text
Frontend (React Dashboard)
        ↓
Backend (Node.js + Express)
        ↓
OpenEnv Environment Logic
        ↓
Tasks + Grader + Reward System
        ↓
Baseline Agent (OpenAI API)
        ↓
Docker → Hugging Face Deployment

Quick Start

  1. 1.Install dependencies for backend:
bash
   npm install
  1. 1.Build and run:
bash
   npm run build
   npm start

Frontend Dashboard

Navigate to frontend/ and run npm install, then npm run dev to access the UI visualization dashboard. To build it for production serving via the main app, run npm run build in the frontend directory.

Docker & Hugging Face Spaces Deployment

Build the image:

bash
docker build -t ticket-env .
docker run -p 7860:7860 -e OPENAI_API_KEY=my_key ticket-env

Running the Baseline

Provide an OpenAI API key to execute the baseline agent against all tasks:

bash
OPENAI_API_KEY="sk-..." npm run baseline

It should output steps taken by the LLM and the final 0.0-1.0 score for each task correctly based on the deterministic grader.