| | | 1 | | using NexusLabs.Needlr.AgentFramework.Progress; |
| | | 2 | | |
| | | 3 | | namespace NexusLabs.Needlr.AgentFramework.Diagnostics; |
| | | 4 | | |
| | | 5 | | /// <summary> |
| | | 6 | | /// Options for running a workflow with diagnostics and progress reporting. |
| | | 7 | | /// Consolidates the parameters for <c>RunWithDiagnosticsAsync</c> into a |
| | | 8 | | /// single record to avoid excessive parameter counts. |
| | | 9 | | /// </summary> |
| | | 10 | | [DoNotAutoRegister] |
| | | 11 | | public sealed record WorkflowRunOptions |
| | | 12 | | { |
| | | 13 | | /// <summary>Gets the diagnostics accessor for per-agent captures.</summary> |
| | 18 | 14 | | public required IAgentDiagnosticsAccessor DiagnosticsAccessor { get; init; } |
| | | 15 | | |
| | | 16 | | /// <summary>Gets the optional progress reporter for real-time events.</summary> |
| | 10 | 17 | | public IProgressReporter? ProgressReporter { get; init; } |
| | | 18 | | |
| | | 19 | | /// <summary>Gets the optional collector for per-LLM-call completions.</summary> |
| | 9 | 20 | | public IChatCompletionCollector? CompletionCollector { get; init; } |
| | | 21 | | |
| | | 22 | | /// <summary> |
| | | 23 | | /// Gets the optional accessor for threading the progress reporter through AsyncLocal |
| | | 24 | | /// so middleware can emit LLM/tool call events. |
| | | 25 | | /// </summary> |
| | 10 | 26 | | public IProgressReporterAccessor? ProgressReporterAccessor { get; init; } |
| | | 27 | | |
| | | 28 | | /// <summary>Gets the cancellation token.</summary> |
| | 18 | 29 | | public CancellationToken CancellationToken { get; init; } |
| | | 30 | | } |