Files
gott/Models/ChainRecord.cs
T
Meleki 99914bd343 feat: Stream-Error-Info für Debugging bei unexpected_end / max_tokens
- chains Tabelle: neue Spalte stream_error_info (TEXT)
- ChainRecord: neues Property StreamErrorInfo
- AnthropicService/ProcessStream: sammelt Debug-Infos bei problematischen
  stop_reasons (unexpected_end, max_tokens) und API error-Events
- FinalizeChain: speichert stream_error_info in DB
- SSE done-Event: enthält streamErrorInfo für Client-seitiges Debugging
2026-03-03 09:14:04 +01:00

24 lines
813 B
C#

namespace Gott.Models;
public class ChainRecord
{
public long Id { get; set; }
public string ChainId { get; set; }
public string SessionId { get; set; }
public string AgentId { get; set; }
public string Model { get; set; }
public string SystemPrompt { get; set; }
public long InputTokens { get; set; }
public long OutputTokens { get; set; }
public long CacheCreationTokens { get; set; }
public long CacheReadTokens { get; set; }
public int Iterations { get; set; }
public string StopReason { get; set; }
public long DurationMs { get; set; }
public string ToolChoice { get; set; }
public string ToolNames { get; set; }
public string ArchiveId { get; set; }
public string StreamErrorInfo { get; set; }
public string CreatedAt { get; set; }
}