WorkflowRunOptions
NexusLabs.Needlr.AgentFramework¶
NexusLabs.Needlr.AgentFramework.Diagnostics¶
WorkflowRunOptions Class¶
Options for running a workflow with diagnostics and progress reporting.
Consolidates the parameters for RunWithDiagnosticsAsync into a
single record to avoid excessive parameter counts.
public sealed record WorkflowRunOptions : System.IEquatable<NexusLabs.Needlr.AgentFramework.Diagnostics.WorkflowRunOptions>
Inheritance System.Object 🡒 WorkflowRunOptions
Implements System.IEquatable<WorkflowRunOptions>
Properties¶
WorkflowRunOptions.CancellationToken Property¶
Gets the cancellation token.
Property Value¶
System.Threading.CancellationToken
WorkflowRunOptions.CompletionCollector Property¶
Gets the optional collector for per-LLM-call completions.
public NexusLabs.Needlr.AgentFramework.Diagnostics.IChatCompletionCollector? CompletionCollector { get; init; }
Property Value¶
WorkflowRunOptions.DiagnosticsAccessor Property¶
Gets the diagnostics accessor for per-agent captures.
public NexusLabs.Needlr.AgentFramework.Diagnostics.IAgentDiagnosticsAccessor DiagnosticsAccessor { get; init; }
Property Value¶
WorkflowRunOptions.ProgressReporter Property¶
Gets the optional progress reporter for real-time events.
Property Value¶
WorkflowRunOptions.ProgressReporterAccessor Property¶
Gets the optional accessor for threading the progress reporter through AsyncLocal so middleware can emit LLM/tool call events.
public NexusLabs.Needlr.AgentFramework.Progress.IProgressReporterAccessor? ProgressReporterAccessor { get; init; }