Agent-Files automatisch beim Erstellen anlegen (IDENTITY.md + SOUL.md), Migration-Vorlagen entfernt
This commit is contained in:
1 parent
3fba628bd2
commit
96af4a3421
5 files changed
+55
-69
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user