Skip to content

ChatCompletionDiagnostics

NexusLabs.Needlr.AgentFramework

NexusLabs.Needlr.AgentFramework.Diagnostics

ChatCompletionDiagnostics Class

Diagnostics for a single LLM chat completion call within an agent run.

public sealed record ChatCompletionDiagnostics : System.IEquatable<NexusLabs.Needlr.AgentFramework.Diagnostics.ChatCompletionDiagnostics>

Inheritance System.Object 🡒 ChatCompletionDiagnostics

Implements System.IEquatable<ChatCompletionDiagnostics>

Constructors

ChatCompletionDiagnostics(int, string, TokenUsage, int, TimeSpan, bool, string, DateTimeOffset, DateTimeOffset) Constructor

Diagnostics for a single LLM chat completion call within an agent run.

public ChatCompletionDiagnostics(int Sequence, string Model, NexusLabs.Needlr.AgentFramework.Diagnostics.TokenUsage Tokens, int InputMessageCount, System.TimeSpan Duration, bool Succeeded, string? ErrorMessage, System.DateTimeOffset StartedAt, System.DateTimeOffset CompletedAt);

Parameters

Sequence System.Int32

Model System.String

Tokens TokenUsage

InputMessageCount System.Int32

Duration System.TimeSpan

Succeeded System.Boolean

ErrorMessage System.String

StartedAt System.DateTimeOffset

CompletedAt System.DateTimeOffset

Properties

ChatCompletionDiagnostics.AgentName Property

The name of the agent that triggered this completion, or null if the agent name was not available. Used to attribute completions to the correct stage in group chat workflows where multiple agents share a single chat client.

public string? AgentName { get; init; }

Property Value

System.String