feat: meter AI usage
CI and Deploy / test (push) Failing after 58s
CI and Deploy / deploy (push) Has been skipped

This commit is contained in:
cesnimda
2026-07-30 22:39:24 +02:00
parent f8466c2ebc
commit c08232b9d7
15 changed files with 2482 additions and 11 deletions
+5
View File
@@ -28,5 +28,10 @@ public sealed class AiInteraction
// meta carries any structured extras (e.g. career-match percent).
public string ResultJson { get; set; } = string.Empty;
// Provider-neutral usage meter. Token count is estimated because the sidecar currently returns text only.
public int InputCharacterCount { get; set; }
public int OutputCharacterCount { get; set; }
public int EstimatedTokenCount { get; set; }
public DateTimeOffset CreatedAtUtc { get; set; } = DateTimeOffset.UtcNow;
}