< Summary

Information
Class: NexusLabs.Needlr.AgentFramework.Diagnostics.WorkflowRunOptions
Assembly: NexusLabs.Needlr.AgentFramework
File(s): /home/runner/work/needlr/needlr/src/NexusLabs.Needlr.AgentFramework/Diagnostics/WorkflowRunOptions.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 30
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
get_DiagnosticsAccessor()100%11100%
get_ProgressReporter()100%11100%
get_CompletionCollector()100%11100%
get_ProgressReporterAccessor()100%11100%
get_CancellationToken()100%11100%

File(s)

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

#LineLine coverage
 1using NexusLabs.Needlr.AgentFramework.Progress;
 2
 3namespace NexusLabs.Needlr.AgentFramework.Diagnostics;
 4
 5/// <summary>
 6/// Options for running a workflow with diagnostics and progress reporting.
 7/// Consolidates the parameters for <c>RunWithDiagnosticsAsync</c> into a
 8/// single record to avoid excessive parameter counts.
 9/// </summary>
 10[DoNotAutoRegister]
 11public sealed record WorkflowRunOptions
 12{
 13    /// <summary>Gets the diagnostics accessor for per-agent captures.</summary>
 1814    public required IAgentDiagnosticsAccessor DiagnosticsAccessor { get; init; }
 15
 16    /// <summary>Gets the optional progress reporter for real-time events.</summary>
 1017    public IProgressReporter? ProgressReporter { get; init; }
 18
 19    /// <summary>Gets the optional collector for per-LLM-call completions.</summary>
 920    public IChatCompletionCollector? CompletionCollector { get; init; }
 21
 22    /// <summary>
 23    /// Gets the optional accessor for threading the progress reporter through AsyncLocal
 24    /// so middleware can emit LLM/tool call events.
 25    /// </summary>
 1026    public IProgressReporterAccessor? ProgressReporterAccessor { get; init; }
 27
 28    /// <summary>Gets the cancellation token.</summary>
 1829    public CancellationToken CancellationToken { get; init; }
 30}