< Summary

Information
Class: NexusLabs.Needlr.AgentFramework.Workflows.Sequential.SequentialPipelineOptions
Assembly: NexusLabs.Needlr.AgentFramework.Workflows
File(s): /home/runner/work/needlr/needlr/src/NexusLabs.Needlr.AgentFramework.Workflows/Sequential/SequentialPipelineOptions.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 31
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_CompletionGate()100%11100%
get_TotalTokenBudget()100%11100%

File(s)

/home/runner/work/needlr/needlr/src/NexusLabs.Needlr.AgentFramework.Workflows/Sequential/SequentialPipelineOptions.cs

#LineLine coverage
 1using NexusLabs.Needlr.AgentFramework.Diagnostics;
 2
 3namespace NexusLabs.Needlr.AgentFramework.Workflows.Sequential;
 4
 5/// <summary>
 6/// Configuration options for a <see cref="SequentialPipelineRunner"/> execution,
 7/// including an optional completion gate and overall token budget.
 8/// </summary>
 9/// <example>
 10/// <code>
 11/// var options = new SequentialPipelineOptions
 12/// {
 13///     CompletionGate = result => result.Succeeded ? null : "Pipeline did not succeed",
 14///     TotalTokenBudget = 50_000,
 15/// };
 16/// </code>
 17/// </example>
 18public sealed record SequentialPipelineOptions
 19{
 20    /// <summary>
 21    /// Optional completion gate evaluated after all stages succeed.
 22    /// Returns <see langword="null"/> on success, or an error message
 23    /// if the pipeline output is unacceptable.
 24    /// </summary>
 525    public Func<IPipelineRunResult, string?>? CompletionGate { get; init; }
 26
 27    /// <summary>
 28    /// Optional overall pipeline token budget.
 29    /// </summary>
 430    public long? TotalTokenBudget { get; init; }
 31}