Struct MetricSummary
A summary of the metrics tracked by a tracker.
Implements
Inherited Members
Namespace: LaunchDarkly.Sdk.Server.Ai.Tracking
Assembly: LaunchDarkly.ServerSdk.Ai.dll
Syntax
public record struct MetricSummary : IEquatable<MetricSummary>
Constructors
| Edit this page View SourceMetricSummary(double?, Feedback?, Usage?, bool?, double?)
A summary of the metrics tracked by a tracker.
Declaration
public MetricSummary(double? DurationMs, Feedback? Feedback, Usage? Tokens, bool? Success, double? TimeToFirstTokenMs)
Parameters
| Type | Name | Description |
|---|---|---|
| double? | DurationMs | the duration in milliseconds |
| Feedback? | Feedback | the feedback sentiment |
| Usage? | Tokens | the token usage |
| bool? | Success | whether the generation was successful |
| double? | TimeToFirstTokenMs | the time to first token in milliseconds |
Properties
| Edit this page View SourceDurationMs
the duration in milliseconds
Declaration
public double? DurationMs { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| double? |
Feedback
the feedback sentiment
Declaration
public Feedback? Feedback { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| Feedback? |
Success
whether the generation was successful
Declaration
public bool? Success { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
TimeToFirstTokenMs
the time to first token in milliseconds
Declaration
public double? TimeToFirstTokenMs { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| double? |
Tokens
the token usage
Declaration
public Usage? Tokens { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| Usage? |