index.html 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1" />
  6. <title>Agent Lab</title>
  7. <link rel="stylesheet" href="/static/styles.css" />
  8. </head>
  9. <body>
  10. <header class="topbar">
  11. <h1>Agent Lab</h1>
  12. <div id="connection-status" class="status">Idle</div>
  13. </header>
  14. <main class="layout">
  15. <aside class="panel controls">
  16. <section>
  17. <div class="section-head">
  18. <h2>System Prompts</h2>
  19. <button id="add-system-prompt" type="button">Add</button>
  20. </div>
  21. <div id="system-prompts" class="stack">
  22. <textarea class="system-prompt" rows="4">You are a debugging assistant.</textarea>
  23. </div>
  24. </section>
  25. <section>
  26. <div class="section-head">
  27. <h2>Pre Messages</h2>
  28. <button id="add-pre-message" type="button">Add</button>
  29. </div>
  30. <div id="pre-messages" class="stack"></div>
  31. </section>
  32. <section>
  33. <h2>Chat Agent</h2>
  34. <label>Model <input id="model" placeholder="Backend default" /></label>
  35. <label>Temperature <input id="temperature" type="number" min="0" max="2" step="0.1" value="0.2" /></label>
  36. <label>Max Tokens <input id="max-tokens" type="number" min="1" step="1" value="800" /></label>
  37. </section>
  38. <section>
  39. <h2>Event Agent</h2>
  40. <label>Max Loops <input id="max-event-loops" type="number" min="1" step="1" value="3" /></label>
  41. <label class="checkbox">
  42. <input id="tool-handoff-note" type="checkbox" checked />
  43. handoff_note
  44. </label>
  45. </section>
  46. </aside>
  47. <section class="workspace">
  48. <div id="messages" class="messages"></div>
  49. <div class="stats">
  50. <div><span>Tokens</span><strong id="stat-tokens">0</strong></div>
  51. <div><span>Cached</span><strong id="stat-cached">0</strong></div>
  52. <div><span>TTFT</span><strong id="stat-ttft">-</strong></div>
  53. <div><span>Elapsed</span><strong id="stat-elapsed">-</strong></div>
  54. </div>
  55. <form id="chat-form" class="composer">
  56. <textarea id="user-message" rows="3" placeholder="Send a debug message"></textarea>
  57. <button type="submit">Run</button>
  58. </form>
  59. </section>
  60. </main>
  61. <template id="pre-message-template">
  62. <div class="pre-message">
  63. <select class="pre-role">
  64. <option value="user">user</option>
  65. <option value="assistant">assistant</option>
  66. <option value="system">system</option>
  67. </select>
  68. <textarea class="pre-content" rows="3"></textarea>
  69. </div>
  70. </template>
  71. <script src="/static/app.js"></script>
  72. </body>
  73. </html>