Struct AiGraphMetricSummary
A summary of the metrics tracked by an AiGraphTracker during a graph invocation.
Implements
Inherited Members
Namespace: LaunchDarkly.Sdk.Server.Ai.Tracking
Assembly: LaunchDarkly.ServerSdk.Ai.dll
Syntax
public record struct AiGraphMetricSummary : IEquatable<AiGraphMetricSummary>
Constructors
| Edit this page View SourceAiGraphMetricSummary(bool?, double?, Usage?, IReadOnlyList<string>, IReadOnlyDictionary<string, MetricSummary>, string)
A summary of the metrics tracked by an AiGraphTracker during a graph invocation.
Declaration
public AiGraphMetricSummary(bool? Success, double? DurationMs, Usage? Tokens, IReadOnlyList<string> Path, IReadOnlyDictionary<string, MetricSummary> NodeMetrics, string ResumptionToken)
Parameters
| Type | Name | Description |
|---|---|---|
| bool? | Success | whether the overall graph invocation succeeded |
| double? | DurationMs | the total duration in milliseconds |
| Usage? | Tokens | the aggregate token usage across the graph |
| IReadOnlyList<string> | Path | the sequence of node keys visited during execution |
| IReadOnlyDictionary<string, MetricSummary> | NodeMetrics | per-node metric summaries keyed by agent config key |
| string | ResumptionToken | the resumption token for cross-process continuation |
Properties
| Edit this page View SourceDurationMs
the total duration in milliseconds
Declaration
public double? DurationMs { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| double? |
NodeMetrics
per-node metric summaries keyed by agent config key
Declaration
public IReadOnlyDictionary<string, MetricSummary> NodeMetrics { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyDictionary<string, MetricSummary> |
Path
the sequence of node keys visited during execution
Declaration
public IReadOnlyList<string> Path { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<string> |
ResumptionToken
the resumption token for cross-process continuation
Declaration
public string ResumptionToken { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Success
whether the overall graph invocation succeeded
Declaration
public bool? Success { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
Tokens
the aggregate token usage across the graph
Declaration
public Usage? Tokens { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| Usage? |