"""FastAPI server exposing HelpdeskEnv over HTTP and a lightweight dashboard UI.""" from typing import Any, Dict, Optional from fastapi import FastAPI from fastapi.responses import HTMLResponse from pydantic import BaseModel import uvicorn from ..environment import HelpdeskEnv from ..graders.score_utils import ensure_open_unit_interval from ..models import Action, Reward app = FastAPI(title="Helpdesk OpenEnv") _env: Optional[HelpdeskEnv] = None UI_HTML = """
Run the benchmark like an operator: reset an episode, choose the exact action your agent would take, and inspect the live observation, conversation, and current reward after each step.