|
|
@@ -11,6 +11,8 @@
|
|
|
<h1>Agent Lab</h1>
|
|
|
<div class="top-actions">
|
|
|
<button id="open-prompt-config" type="button">Prompt Config</button>
|
|
|
+ <button id="open-chat-config" type="button">Chat Config</button>
|
|
|
+ <button id="open-event-config" type="button">Event Config</button>
|
|
|
<div id="connection-status" class="status">Idle</div>
|
|
|
</div>
|
|
|
</header>
|
|
|
@@ -29,32 +31,11 @@
|
|
|
</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>
|
|
|
- <label>System Prompt <textarea id="chat-system-prompt" rows="4" placeholder="Optional ChatAgent system prompt"></textarea></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>
|
|
|
- <h2>Event Agent</h2>
|
|
|
- <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="4" 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>
|
|
|
+ <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>
|
|
|
|
|
|
</aside>
|
|
|
@@ -116,6 +97,49 @@
|
|
|
</form>
|
|
|
</dialog>
|
|
|
|
|
|
+ <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>
|
|
|
+ <label>System Prompt <textarea id="chat-system-prompt" rows="5" placeholder="Optional ChatAgent system prompt"></textarea></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>
|
|
|
+ </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">
|