< Summary

Information
Class: NexusLabs.Needlr.AgentFramework.Workflows.Sequential.PipelineStage
Assembly: NexusLabs.Needlr.AgentFramework.Workflows
File(s): /home/runner/work/needlr/needlr/src/NexusLabs.Needlr.AgentFramework.Workflows/Sequential/PipelineStage.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 21
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_Name()100%11100%
get_Executor()100%11100%
get_Policy()100%11100%

File(s)

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

#LineLine coverage
 1namespace NexusLabs.Needlr.AgentFramework.Workflows.Sequential;
 2
 3/// <summary>
 4/// Defines a single stage in a sequential pipeline, binding a name,
 5/// executor, and optional execution policy.
 6/// </summary>
 7/// <param name="Name">Human-readable name for the stage (used in diagnostics and progress events).</param>
 8/// <param name="Executor">The <see cref="IStageExecutor"/> that runs this stage's logic.</param>
 9/// <param name="Policy">Optional <see cref="StageExecutionPolicy"/> controlling skip, retry, and budget behavior.</para
 10/// <example>
 11/// <code>
 12/// var stage = new PipelineStage(
 13///     "Writer",
 14///     new AgentStageExecutor(writerAgent, ctx => "Write a draft."),
 15///     new StageExecutionPolicy { MaxAttempts = 2 });
 16/// </code>
 17/// </example>
 15218public sealed record PipelineStage(
 56919    string Name,
 9620    IStageExecutor Executor,
 25221    StageExecutionPolicy? Policy = null);