Agent-Files automatisch beim Erstellen anlegen (IDENTITY.md + SOUL.md), Migration-Vorlagen entfernt

This commit is contained in:
Meleki committed 2026-03-01 14:04:21 +01:00
1 parent 3fba628bd2
commit 96af4a3421
5 files changed
+55 -69

No files matched your search

+2 -1
View File
@@ -36,7 +36,7 @@ public static class AgentEndpoint
await ctx.Response.WriteAsJsonAsync(agent);
}
private static async Task HandleCreate(HttpContext ctx, DatabaseService db, ImageService imageService)
private static async Task HandleCreate(HttpContext ctx, DatabaseService db, ImageService imageService, MemoryService memoryService)
{
var body = await JsonSerializer.DeserializeAsync<JsonElement>(ctx.Request.Body);
@@ -58,6 +58,7 @@ public static class AgentEndpoint
};
agent = await db.CreateAgent(agent);
memoryService.InitializeAgentFiles(agent.AgentId, agent.Name);
await ctx.Response.WriteAsJsonAsync(agent);
}