< Summary

Information
Class: NexusLabs.Needlr.AgentFramework.Diagnostics.DagNodeResult
Assembly: NexusLabs.Needlr.AgentFramework
File(s): /home/runner/work/needlr/needlr/src/NexusLabs.Needlr.AgentFramework/Diagnostics/DagNodeResult.cs
Line coverage
100%
Covered lines: 29
Uncovered lines: 0
Coverable lines: 29
Total lines: 50
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_NodeId()100%11100%
get_AgentName()100%11100%
get_Kind()100%11100%
get_Diagnostics()100%11100%
get_FinalResponse()100%11100%
get_InboundEdges()100%11100%
get_OutboundEdges()100%11100%
get_StartOffset()100%11100%
get_Duration()100%11100%

File(s)

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

#LineLine coverage
 1using Microsoft.Extensions.AI;
 2
 3namespace NexusLabs.Needlr.AgentFramework.Diagnostics;
 4
 5/// <summary>
 6/// Default implementation of <see cref="IDagNodeResult"/>.
 7/// </summary>
 8[DoNotAutoRegister]
 9internal sealed class DagNodeResult : IDagNodeResult
 10{
 10511    internal DagNodeResult(
 10512        string nodeId,
 10513        string agentName,
 10514        NodeKind kind,
 10515        IAgentRunDiagnostics? diagnostics,
 10516        ChatResponse? finalResponse,
 10517        IReadOnlyList<string> inboundEdges,
 10518        IReadOnlyList<string> outboundEdges,
 10519        TimeSpan startOffset,
 10520        TimeSpan duration)
 21    {
 10522        NodeId = nodeId;
 10523        AgentName = agentName;
 10524        Kind = kind;
 10525        Diagnostics = diagnostics;
 10526        FinalResponse = finalResponse;
 10527        InboundEdges = inboundEdges;
 10528        OutboundEdges = outboundEdges;
 10529        StartOffset = startOffset;
 10530        Duration = duration;
 10531    }
 32
 133    public string NodeId { get; }
 34
 135    public string AgentName { get; }
 36
 337    public NodeKind Kind { get; }
 38
 239    public IAgentRunDiagnostics? Diagnostics { get; }
 40
 241    public ChatResponse? FinalResponse { get; }
 42
 443    public IReadOnlyList<string> InboundEdges { get; }
 44
 345    public IReadOnlyList<string> OutboundEdges { get; }
 46
 147    public TimeSpan StartOffset { get; }
 48
 149    public TimeSpan Duration { get; }
 50}