File size: 3,031 Bytes
b9d7c95
 
 
 
 
 
3748f8d
b9d7c95
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3748f8d
b9d7c95
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Incident Triage API</title>
  <link rel="stylesheet" href="/assets/styles.css?v=5">
</head>
<body data-page="api">
  <div class="page-shell">
    <header class="topbar">
      <a class="brand" href="/">
        <span class="brand-kicker">OpenEnv Environment</span>
        <span class="brand-title">Incident Triage</span>
      </a>
      <nav class="nav-links">
        <a href="/">Home</a>
        <a href="/status">Status</a>
        <a href="/playground">Playground</a>
        <a href="/docs">FastAPI Docs</a>
      </nav>
    </header>

    <main class="stack-layout">
      <section class="api-hero floating-panel">
        <div class="section-heading compact">
          <p class="eyebrow">API Explorer</p>
          <h1>OpenEnv routes, without raw JSON confusion</h1>
          <p class="section-copy">
            This page is for humans. Validators still call the real HTTP endpoints directly:
            <code>/reset</code>, <code>/step</code>, <code>/state</code>, and schema routes.
          </p>
        </div>
        <div class="api-health-card">
          <span class="status-caption">Runtime</span>
          <strong data-api-health>Checking</strong>
          <p data-api-summary>Loading API metadata.</p>
        </div>
      </section>

      <section class="api-flow-grid">
        <article class="flow-card">
          <span>1</span>
          <strong>Reset</strong>
          <p>Starts one incident episode and returns the observation plus a session id.</p>
        </article>
        <article class="flow-card">
          <span>2</span>
          <strong>Step</strong>
          <p>Submits one agent answer and returns reward, correctness, and done status.</p>
        </article>
        <article class="flow-card">
          <span>3</span>
          <strong>State</strong>
          <p>Reads the current or completed typed state for a known session id.</p>
        </article>
      </section>

      <section class="floating-panel">
        <div class="section-heading compact">
          <p class="eyebrow">Validator Surface</p>
          <h2>Routes the judges and agents use</h2>
        </div>
        <div class="endpoint-grid" data-endpoint-grid></div>
      </section>

      <section class="dual-grid">
        <article class="floating-panel">
          <div class="section-heading compact">
            <p class="eyebrow">Schemas</p>
            <h2>Typed model coverage</h2>
          </div>
          <div class="badge-grid" data-api-schema-grid></div>
        </article>

        <article class="floating-panel">
          <div class="section-heading compact">
            <p class="eyebrow">Grader Rules</p>
            <h2>Reward scale</h2>
          </div>
          <ul class="bullet-list" data-api-grader-list></ul>
        </article>
      </section>

    </main>
  </div>
  <script src="/assets/app.js?v=5" defer></script>
</body>
</html>