Tool-Nutzung: tool_choice pro Agent konfigurierbar (default: any), wiederholte Instruktionen im System-Prompt, MaxIterations in appsettings

This commit is contained in:
Meleki committed 2026-02-28 19:33:41 +01:00
1 parent 8c9f54da79
commit ff67542ba6
10 files changed
+59 -9

No files matched your search

+3
View File
@@ -20,6 +20,7 @@ registerPage('agent', {
const modelEl = document.getElementById('agentModel');
const personaEl = document.getElementById('agentPersona');
const instructionsEl = document.getElementById('agentInstructions');
const toolChoiceEl = document.getElementById('agentToolChoice');
const avatarPreview = document.getElementById('avatarPreview');
const avatarInput = document.getElementById('avatarInput');
const avatarBtn = document.getElementById('avatarBtn');
@@ -37,6 +38,7 @@ registerPage('agent', {
modelEl.value = agent.model || 'sonnet';
personaEl.value = agent.persona || '';
instructionsEl.value = agent.instructions || '';
toolChoiceEl.checked = (agent.toolChoice || 'any') === 'any';
_agentAvatarData = agent.avatar || null;
deleteBtn.hidden = false;
@@ -92,6 +94,7 @@ registerPage('agent', {
model: modelEl.value,
persona: personaEl.value,
instructions: instructionsEl.value,
toolChoice: toolChoiceEl.checked ? 'any' : 'auto',
avatar: _agentAvatarData
};