Enha: json tag for stats

This commit is contained in:
Grail Finder
2026-02-23 09:35:40 +03:00
parent a546bfe596
commit ef53e9bebe

View File

@@ -110,7 +110,7 @@ type RoleMsg struct {
ContentParts []any `json:"-"`
ToolCallID string `json:"tool_call_id,omitempty"` // For tool response messages
KnownTo []string `json:"known_to,omitempty"`
Stats *ResponseStats `json:"-"` // Display-only, not persisted
Stats *ResponseStats `json:"stats"`
hasContentParts bool // Flag to indicate which content type to marshal
}