Persistenz: SQLite + Dapper, chains/messages Tabellen, History-Endpoint, Frontend History-Load

This commit is contained in:
Meleki committed 2026-02-26 15:21:34 +01:00
1 parent 5f210323fd
commit 9f2f3fee1f
9 files changed
+370 -6

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
namespace Gott.Models;
public class MessageRecord
{
public long Id { get; set; }
public string ChainId { get; set; }
public string Role { get; set; } // user, assistant
public string Type { get; set; } // text, tool_use, tool_result
public string Content { get; set; } // Text oder JSON
public string ToolName { get; set; } // null bei text
public string ToolCallId { get; set; } // tool_use id
public bool IsError { get; set; }
public int Iteration { get; set; } // welche Loop-Iteration
public string CreatedAt { get; set; }
}