| 1 | <html> |
| 2 | <head> |
| 3 | <title>Agent Config</title> |
| 4 | </head> |
| 5 | |
| 6 | <body> |
| 7 | <div x-data> |
| 8 | <template x-if="$store.settings.settings"> |
| 9 | <div> |
| 10 | <div class="section-title">Agent Config</div> |
| 11 | <div class="section-description"> |
| 12 | Choose the default personality and operating profile for new chats. |
| 13 | </div> |
| 14 | |
| 15 | <div class="field"> |
| 16 | <div class="field-label"> |
| 17 | <div class="field-title">Default agent profile</div> |
| 18 | <div class="field-description"> |
| 19 | New top-level chats start here. Existing chats keep their own selected profile. |
| 20 | </div> |
| 21 | </div> |
| 22 | <div class="field-control"> |
| 23 | <select x-model="$store.settings.settings.agent_profile"> |
| 24 | <template x-for="option in $store.settings.additional?.agent_subdirs" :key="option.value"> |
| 25 | <option :value="option.value" :selected="option.value === $store.settings.settings.agent_profile" x-text="option.label"></option> |
| 26 | </template> |
| 27 | </select> |
| 28 | </div> |
| 29 | </div> |
| 30 | |
| 31 | <div class="settings-advanced-section" x-data="{ advOpen: false }"> |
| 32 | <button type="button" class="settings-advanced-toggle" @click="advOpen = !advOpen"> |
| 33 | <x-icon class="settings-advanced-toggle-icon" |
| 34 | :style="advOpen ? 'transform:rotate(90deg)' : ''" name="chevron_right"></x-icon> |
| 35 | <span>Advanced Settings</span> |
| 36 | </button> |
| 37 | |
| 38 | <div class="settings-advanced-body" x-show="advOpen" x-transition.opacity> |
| 39 | <div class="field"> |
| 40 | <div class="field-label"> |
| 41 | <div class="field-title">Knowledge subdirectory</div> |
| 42 | <div class="field-description"> |
| 43 | Add a specialized knowledge folder on top of the framework defaults. |
| 44 | </div> |
| 45 | </div> |
| 46 | <div class="field-control"> |
| 47 | <select x-model="$store.settings.settings.agent_knowledge_subdir"> |
| 48 | <template x-for="option in $store.settings.additional?.knowledge_subdirs" :key="option.value"> |
| 49 | <option :value="option.value" :selected="option.value === $store.settings.settings.agent_knowledge_subdir" x-text="option.label"></option> |
| 50 | </template> |
| 51 | </select> |
| 52 | </div> |
| 53 | </div> |
| 54 | |
| 55 | <div class="field"> |
| 56 | <div class="field-label"> |
| 57 | <div class="field-title">Inherit active project</div> |
| 58 | <div class="field-description"> |
| 59 | Start new chats in the same project context as the current chat. |
| 60 | </div> |
| 61 | </div> |
| 62 | <div class="field-control"> |
| 63 | <label class="toggle"> |
| 64 | <input type="checkbox" x-model="$store.settings.settings.chat_inherit_project"> |
| 65 | <span class="toggler"> </span> |
| 66 | </label> |
| 67 | </div> |
| 68 | </div> |
| 69 | |
| 70 | <div class="field"> |
| 71 | <div class="field-label"> |
| 72 | <div class="field-title">Consecutive unusable response limit</div> |
| 73 | <div class="field-description"> |
| 74 | Stop after this many malformed or repeated model responses. The default is 5. |
| 75 | </div> |
| 76 | </div> |
| 77 | <div class="field-control"> |
| 78 | <input |
| 79 | type="number" |
| 80 | min="1" |
| 81 | step="1" |
| 82 | x-model.number="$store.settings.settings.max_consecutive_unusable_responses" |
| 83 | /> |
| 84 | </div> |
| 85 | </div> |
| 86 | </div> |
| 87 | </div> |
| 88 | </div> |
| 89 | </template> |
| 90 | </div> |
| 91 | </body> |
| 92 | </html> |