CoolFace
Apppublic

zorodaa100800/Scalar-Open-Env-ticket-routing

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

Ticket Routing OpenEnv

This project provides a small support-ticket classification environment for OpenEnv / Scalar validation.

What it does

  • —app.py exposes a FastAPI service for the environment.
  • —server/app.py provides the packaged server and CLI entrypoint.
  • —env/environment.py contains the ticket environment logic.
  • —interference.py runs a simple inference loop against the environment.
  • —openenv.yaml describes the environment for the validator.

Environment Behavior

The environment is one-step and returns a ticket with a label:

  • —billing
  • —tech
  • —general

Use reset() to start a new ticket, step() to submit a category, and state() to inspect the current ticket.

Local Setup

bash
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Run the API

bash
uvicorn server.app:app --host 0.0.0.0 --port 7860

Run the CLI

bash
python app.py serve
python app.py reset --task easy
python app.py step billing

Run the inference script

bash
python interference.py

Validation

bash
openenv validate .

Space Notes

The Docker Space listens on port 7860 and uses Dockerfile for startup.