| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- <!doctype html>
- <html lang="en">
- <head>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1" />
- <title>Agent Lab</title>
- <link rel="stylesheet" href="/static/styles.css" />
- </head>
- <body>
- <header class="topbar">
- <h1>Agent Lab</h1>
- <div id="connection-status" class="status">Idle</div>
- </header>
- <main class="layout">
- <aside class="panel controls">
- <section>
- <div class="section-head">
- <h2>System Prompts</h2>
- <button id="add-system-prompt" type="button">Add</button>
- </div>
- <div id="system-prompts" class="stack">
- <textarea class="system-prompt" rows="4">You are a debugging assistant.</textarea>
- </div>
- </section>
- <section>
- <div class="section-head">
- <h2>Pre Messages</h2>
- <button id="add-pre-message" type="button">Add</button>
- </div>
- <div id="pre-messages" class="stack"></div>
- </section>
- <section>
- <h2>Chat Agent</h2>
- <label>Model <input id="model" placeholder="Backend default" /></label>
- <label>Temperature <input id="temperature" type="number" min="0" max="2" step="0.1" value="0.2" /></label>
- <label>Max Tokens <input id="max-tokens" type="number" min="1" step="1" value="800" /></label>
- </section>
- <section>
- <h2>Event Agent</h2>
- <label>Max Loops <input id="max-event-loops" type="number" min="1" step="1" value="3" /></label>
- <div id="tool-list" class="stack">Loading tools...</div>
- </section>
- </aside>
- <section class="workspace">
- <div id="messages" class="messages"></div>
- <div class="stats">
- <div><span>Tokens</span><strong id="stat-tokens">0</strong></div>
- <div><span>Cached</span><strong id="stat-cached">0</strong></div>
- <div><span>TTFT</span><strong id="stat-ttft">-</strong></div>
- <div><span>Elapsed</span><strong id="stat-elapsed">-</strong></div>
- </div>
- <form id="chat-form" class="composer">
- <textarea id="user-message" rows="3" placeholder="Send a debug message"></textarea>
- <button type="submit">Run</button>
- </form>
- </section>
- </main>
- <template id="pre-message-template">
- <div class="pre-message">
- <select class="pre-role">
- <option value="user">user</option>
- <option value="assistant">assistant</option>
- <option value="system">system</option>
- </select>
- <textarea class="pre-content" rows="3"></textarea>
- </div>
- </template>
- <script src="/static/app.js"></script>
- </body>
- </html>
|