Agent-Flags: useSoul, useIdentity, useUserInfo, useMemory

- 4 neue bool-Properties auf AgentRecord (Default: true)
- DB-Migration: use_soul, use_identity, use_user_info, use_memory
- SystemPromptBuilder: IDENTITY.md, SOUL.md, USER.md, Memory-Block bedingt
- AnthropicService: Memory-Tools nur wenn useMemory aktiv
- Agent-Formular: 4 Checkboxen (Seele, Identität, Gegenüber, Erinnerungen)
- API: Create + Update lesen/speichern die neuen Flags
This commit is contained in:
Meleki committed 2026-03-01 14:33:11 +01:00
1 parent da34739cba
commit 6df3591d8b
8 files changed
+57 -10

No files matched your search

+2 -1
View File
@@ -38,6 +38,7 @@ public class AnthropicService
string workspace,
string sessionId = null,
string agentId = null,
bool useMemory = true,
int maxIterations = 100,
string toolChoice = "any",
CancellationToken cancellationToken = default)
@@ -72,7 +73,7 @@ public class AnthropicService
if (!string.IsNullOrEmpty(workspace))
{
var includeMemory = _memoryService != null && !string.IsNullOrEmpty(agentId);
var includeMemory = useMemory && _memoryService != null && !string.IsNullOrEmpty(agentId);
payload["tools"] = _toolService.GetToolDefinitions(includeMemory);
// "any" erzwingt Tool-Nutzung, aber nur in der ersten Iteration,
// damit Claude nicht endlos Tools aufruft wenn die Aufgabe erledigt ist.