< Summary

Information
Class: NexusLabs.Needlr.AgentFramework.Iterative.IterativeLoopConfiguration
Assembly: NexusLabs.Needlr.AgentFramework
File(s): /home/runner/work/needlr/needlr/src/NexusLabs.Needlr.AgentFramework/Iterative/IterativeLoopConfiguration.cs
Line coverage
100%
Covered lines: 8
Uncovered lines: 0
Coverable lines: 8
Total lines: 23
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_ToolResultMode()100%11100%
get_MaxIterations()100%11100%
get_MaxToolRoundsPerIteration()100%11100%
get_MaxTotalToolCalls()100%11100%
get_BudgetPressureThreshold()100%11100%
get_LoopName()100%11100%
get_CheckCompletionAfterToolCalls()100%11100%

File(s)

/home/runner/work/needlr/needlr/src/NexusLabs.Needlr.AgentFramework/Iterative/IterativeLoopConfiguration.cs

#LineLine coverage
 1namespace NexusLabs.Needlr.AgentFramework.Iterative;
 2
 3/// <summary>
 4/// Snapshot of the resolved configuration used for an <see cref="IIterativeAgentLoop"/> run.
 5/// Echoed on <see cref="IterativeLoopResult.Configuration"/> so consumers can inspect
 6/// the loop's settings after execution without referencing the original
 7/// <see cref="IterativeLoopOptions"/>.
 8/// </summary>
 9/// <param name="ToolResultMode">How tool results were fed back to the model.</param>
 10/// <param name="MaxIterations">Maximum iterations allowed.</param>
 11/// <param name="MaxToolRoundsPerIteration">Maximum tool-calling rounds per iteration in <see cref="Iterative.ToolResult
 12/// <param name="MaxTotalToolCalls">Cumulative tool call limit, or <see langword="null"/> if unlimited.</param>
 13/// <param name="BudgetPressureThreshold">Token budget pressure threshold, or <see langword="null"/> if disabled.</param
 14/// <param name="LoopName">Human-readable name used in diagnostics and progress events.</param>
 15/// <param name="CheckCompletionAfterToolCalls">When the <see cref="IterativeLoopOptions.IsComplete"/> predicate was che
 17516public sealed record IterativeLoopConfiguration(
 217    ToolResultMode ToolResultMode,
 218    int MaxIterations,
 219    int MaxToolRoundsPerIteration,
 220    int? MaxTotalToolCalls,
 221    double? BudgetPressureThreshold,
 222    string LoopName,
 17623    ToolCompletionCheckMode CheckCompletionAfterToolCalls);