| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169 |
- <!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 class="top-actions">
- <div id="connection-status" class="status">Idle</div>
- </div>
- </header>
- <main class="layout">
- <aside class="panel controls">
- <section class="tools-section">
- <div class="section-head">
- <h2>Tools <span id="tool-count">0 selected</span></h2>
- <div class="button-row compact">
- <button id="select-all-tools" type="button">All</button>
- <button id="clear-tools" type="button">None</button>
- </div>
- </div>
- <div id="tool-list" class="stack">Loading tools...</div>
- </section>
- <section>
- <h2>Agent Config</h2>
- <div class="button-row two">
- <button id="open-chat-config-panel" type="button">Chat Agent</button>
- <button id="open-event-config-panel" type="button">Event Agent</button>
- </div>
- </section>
- <section class="snapshot-section">
- <h2>Workspace Snapshot</h2>
- <label>Name <input id="workspace-snapshot-name" placeholder="debug workspace" /></label>
- <label>
- Saved Snapshot
- <select id="saved-workspace-snapshots"></select>
- </label>
- <div class="button-row">
- <button id="save-workspace-snapshot" type="button">Save</button>
- <button id="load-workspace-snapshot" type="button">Load</button>
- <button id="delete-workspace-snapshot" type="button">Delete</button>
- </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 id="run-button" type="submit">Run</button>
- </form>
- </section>
- </main>
- <dialog id="chat-config-dialog" class="modal">
- <form method="dialog" class="modal-shell">
- <div class="modal-head">
- <h2>Chat Agent Config</h2>
- <button id="close-chat-config" type="button">Close</button>
- </div>
- <section>
- <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>
- <fieldset>
- <legend>Extra Body</legend>
- <label class="checkbox"><input id="chat-thinking-disabled" type="checkbox" checked /> Disable thinking</label>
- <label class="checkbox"><input id="chat-enable-search" type="checkbox" /> Enable search</label>
- <label class="checkbox"><input id="chat-forced-search" type="checkbox" /> Forced search</label>
- </fieldset>
- </section>
- <section>
- <div class="section-head">
- <h2>Prompt List</h2>
- <button id="add-system-prompt" type="button">Add</button>
- </div>
- <div id="system-prompts" class="prompt-list stack">
- <div class="prompt-item" draggable="true" data-prompt-kind="custom" data-prompt-role="system">
- <div class="prompt-item-head">
- <div class="prompt-meta">
- <span class="prompt-type">type: system</span>
- <span class="prompt-title">Custom</span>
- </div>
- <div class="prompt-actions">
- <button class="move-prompt-up" type="button">Up</button>
- <button class="move-prompt-down" type="button">Down</button>
- <button class="delete-system-prompt" type="button">Delete</button>
- </div>
- </div>
- <textarea class="system-prompt" rows="3">You are a debugging assistant.</textarea>
- </div>
- <div class="prompt-item event-prompt" draggable="true" data-prompt-kind="event_agent_system" data-prompt-role="system">
- <div class="prompt-item-head">
- <div class="prompt-meta">
- <span class="prompt-type">type: system</span>
- <span class="prompt-title">EventAgent Rules</span>
- </div>
- <div class="prompt-actions">
- <button class="move-prompt-up" type="button">Up</button>
- <button class="move-prompt-down" type="button">Down</button>
- </div>
- </div>
- <textarea class="system-prompt" rows="7" readonly></textarea>
- </div>
- </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>
- </form>
- </dialog>
- <dialog id="event-config-dialog" class="modal">
- <form method="dialog" class="modal-shell">
- <div class="modal-head">
- <h2>Event Agent Config</h2>
- <button id="close-event-config" type="button">Close</button>
- </div>
- <section>
- <label>Model <input id="event-model" placeholder="Same as ChatAgent" /></label>
- <label>Temperature <input id="event-temperature" type="number" min="0" max="2" step="0.1" value="0.2" /></label>
- <label>Max Tokens <input id="event-max-tokens" type="number" min="1" step="1" value="800" /></label>
- <label>System Prompt <textarea id="event-system-prompt" rows="5" placeholder="Optional EventAgent system prompt"></textarea></label>
- <label>Max Loops <input id="max-event-loops" type="number" min="1" step="1" value="1" /></label>
- <fieldset>
- <legend>Extra Body</legend>
- <label class="checkbox"><input id="event-thinking-disabled" type="checkbox" checked /> Disable thinking</label>
- <label class="checkbox"><input id="event-enable-search" type="checkbox" /> Enable search</label>
- <label class="checkbox"><input id="event-forced-search" type="checkbox" /> Forced search</label>
- </fieldset>
- </section>
- </form>
- </dialog>
- <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?v=20260706-workspace-snapshot"></script>
- </body>
- </html>
|