< Summary

Information
Class: NexusLabs.Needlr.AgentFramework.Diagnostics.AgentRunDiagnostics
Assembly: NexusLabs.Needlr.AgentFramework
File(s): /home/runner/work/needlr/needlr/src/NexusLabs.Needlr.AgentFramework/Diagnostics/AgentRunDiagnostics.cs
Line coverage
86%
Covered lines: 13
Uncovered lines: 2
Coverable lines: 15
Total lines: 24
Line coverage: 86.6%
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_AgentName()100%11100%
get_TotalDuration()100%11100%
get_AggregateTokenUsage()100%11100%
get_ChatCompletions()100%11100%
get_ToolCalls()100%11100%
get_TotalInputMessages()100%11100%
get_TotalOutputMessages()100%11100%
get_InputMessages()100%11100%
get_OutputResponse()100%11100%
get_Succeeded()100%11100%
get_ErrorMessage()100%11100%
get_StartedAt()100%210%
get_CompletedAt()100%210%
get_ExecutionMode()100%11100%

File(s)

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

#LineLine coverage
 1using Microsoft.Agents.AI;
 2using Microsoft.Extensions.AI;
 3
 4namespace NexusLabs.Needlr.AgentFramework.Diagnostics;
 5
 6/// <summary>
 7/// Default implementation of <see cref="IAgentRunDiagnostics"/>.
 8/// </summary>
 9[DoNotAutoRegister]
 35110internal sealed record AgentRunDiagnostics(
 6911    string AgentName,
 6512    TimeSpan TotalDuration,
 41713    TokenUsage AggregateTokenUsage,
 7414    IReadOnlyList<ChatCompletionDiagnostics> ChatCompletions,
 3915    IReadOnlyList<ToolCallDiagnostics> ToolCalls,
 516    int TotalInputMessages,
 417    int TotalOutputMessages,
 618    IReadOnlyList<ChatMessage> InputMessages,
 719    AgentResponse? OutputResponse,
 7120    bool Succeeded,
 621    string? ErrorMessage,
 022    DateTimeOffset StartedAt,
 023    DateTimeOffset CompletedAt,
 35324    string? ExecutionMode = null) : IAgentRunDiagnostics;