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.
IterativeContext Mutable state passed to the prompt factory and IsComplete predicate on each iteration of an IIterativeAgentLoop.
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.
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
ToolResultMode Controls how tool call results are fed back to the model within a single iteration of an IIterativeAgentLoop.