Skip to content

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.

public System.Threading.CancellationToken CancellationToken { get; init; }

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

IChatCompletionCollector

WorkflowRunOptions.DiagnosticsAccessor Property

Gets the diagnostics accessor for per-agent captures.

public NexusLabs.Needlr.AgentFramework.Diagnostics.IAgentDiagnosticsAccessor DiagnosticsAccessor { get; init; }

Property Value

IAgentDiagnosticsAccessor

WorkflowRunOptions.ProgressReporter Property

Gets the optional progress reporter for real-time events.

public NexusLabs.Needlr.AgentFramework.Progress.IProgressReporter? ProgressReporter { get; init; }

Property Value

IProgressReporter

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; }

Property Value

IProgressReporterAccessor