< Summary

Information
Class: NexusLabs.Needlr.AgentFramework.Diagnostics.DiagnosticsTimelineEntry
Assembly: NexusLabs.Needlr.AgentFramework
File(s): /home/runner/work/needlr/needlr/src/NexusLabs.Needlr.AgentFramework/Diagnostics/DiagnosticsTimelineEntry.cs
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
Total lines: 28
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%
get_Kind()100%11100%
get_Sequence()100%11100%
get_StartedAt()100%11100%
get_CompletedAt()100%11100%
get_ChatCompletion()100%11100%
get_ToolCall()100%11100%

File(s)

/home/runner/work/needlr/needlr/src/NexusLabs.Needlr.AgentFramework/Diagnostics/DiagnosticsTimelineEntry.cs

#LineLine coverage
 1namespace NexusLabs.Needlr.AgentFramework.Diagnostics;
 2
 3/// <summary>
 4/// A single entry in an agent run's ordered timeline of chat completions and tool calls.
 5/// </summary>
 6/// <remarks>
 7/// <para>
 8/// Timeline entries are constructed by
 9/// <see cref="AgentRunDiagnosticsTimelineExtensions.GetOrderedTimeline(IAgentRunDiagnostics)"/>,
 10/// which merges and orders the <see cref="IAgentRunDiagnostics.ChatCompletions"/> and
 11/// <see cref="IAgentRunDiagnostics.ToolCalls"/> collections by wall-clock time. Use the
 12/// <see cref="ChatCompletion"/> or <see cref="ToolCall"/> property corresponding to
 13/// <see cref="Kind"/> to access the original diagnostics record.
 14/// </para>
 15/// </remarks>
 16/// <param name="Kind">Whether this entry represents a chat completion or a tool call.</param>
 17/// <param name="Sequence">The invocation sequence within the source collection.</param>
 18/// <param name="StartedAt">UTC timestamp when the operation began.</param>
 19/// <param name="CompletedAt">UTC timestamp when the operation finished.</param>
 20/// <param name="ChatCompletion">The source chat-completion record when <see cref="Kind"/> is <see cref="DiagnosticsTime
 21/// <param name="ToolCall">The source tool-call record when <see cref="Kind"/> is <see cref="DiagnosticsTimelineEntryKin
 1922public sealed record DiagnosticsTimelineEntry(
 2423    DiagnosticsTimelineEntryKind Kind,
 724    int Sequence,
 3425    DateTimeOffset StartedAt,
 226    DateTimeOffset CompletedAt,
 627    ChatCompletionDiagnostics? ChatCompletion,
 2328    ToolCallDiagnostics? ToolCall);