- 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
24 lines
813 B
C#
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; }
|
|
}
|