Skip to content

AgentRunDiagnosticsTimelineExtensions

NexusLabs.Needlr.AgentFramework

NexusLabs.Needlr.AgentFramework.Diagnostics

AgentRunDiagnosticsTimelineExtensions Class

Extensions for producing ordered timeline views of an IAgentRunDiagnostics.

public static class AgentRunDiagnosticsTimelineExtensions

Inheritance System.Object 🡒 AgentRunDiagnosticsTimelineExtensions

Methods

AgentRunDiagnosticsTimelineExtensions.GetOrderedTimeline(this IAgentRunDiagnostics) Method

Merges the chat completions and tool calls into a single list ordered by StartedAt (ascending), with Sequence as a tiebreaker within the same kind.

public static System.Collections.Generic.IReadOnlyList<NexusLabs.Needlr.AgentFramework.Diagnostics.DiagnosticsTimelineEntry> GetOrderedTimeline(this NexusLabs.Needlr.AgentFramework.Diagnostics.IAgentRunDiagnostics diagnostics);

Parameters

diagnostics IAgentRunDiagnostics

The agent run diagnostics to project.

Returns

System.Collections.Generic.IReadOnlyList<DiagnosticsTimelineEntry>
A snapshot list of timeline entries. Never null; may be empty.