Skip to content

NexusLabs.Needlr.AgentFramework.Iterative

NexusLabs.Needlr.AgentFramework

NexusLabs.Needlr.AgentFramework.Iterative Namespace

Classes
IterationRecord Captures what happened during a single iteration of an IIterativeAgentLoop, including tool calls made, any text response produced, token usage, and wall-clock duration.
IterationRecordEvaluationExtensions Extensions that convert IterationRecord and collections of iteration records into Microsoft.Extensions.AI shapes suitable for evaluation libraries (e.g., Microsoft.Extensions.AI.Evaluation's ToolCallAccuracyEvaluator).
IterativeContext Mutable state passed to the prompt factory and IsComplete predicate on each iteration of an IIterativeAgentLoop.
IterativeLoopConfiguration Snapshot of the resolved configuration used for an IIterativeAgentLoop run. Echoed on Configuration so consumers can inspect the loop's settings after execution without referencing the original IterativeLoopOptions.
IterativeLoopOptions Configuration for a single run of an IIterativeAgentLoop.
IterativeLoopResult The result of running an IIterativeAgentLoop to completion, including per-iteration records, aggregate diagnostics, and the final model response.
StallDetectionOptions Configuration for iterative loop stall detection.
ToolCallResult The result of executing a single tool call within an iteration of an IIterativeAgentLoop.
Interfaces
IChatClientAccessor Provides access to the configured Microsoft.Extensions.AI.IChatClient from the agent framework pipeline, including any middleware (diagnostics, token budget) that was wired via UsingDiagnostics(), UsingTokenBudget(), etc.
IIterativeAgentLoop Runs an iterative agent loop where each iteration builds a fresh prompt from workspace state instead of accumulating conversation history.
Enums
TerminationReason Describes why an IIterativeAgentLoop run terminated.
ToolResultMode Controls how tool call results are fed back to the model within a single iteration of an IIterativeAgentLoop.