feat: meter AI usage
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user