Skip to content

IProgressReporterFactory

NexusLabs.Needlr.AgentFramework

NexusLabs.Needlr.AgentFramework.Progress

IProgressReporterFactory Interface

Creates IProgressReporter instances scoped to a specific orchestration. Each orchestrator can have its own set of sinks.

public interface IProgressReporterFactory

Methods

IProgressReporterFactory.Create(string) Method

Creates a reporter using the default sinks registered in DI.

NexusLabs.Needlr.AgentFramework.Progress.IProgressReporter Create(string workflowId);

Parameters

workflowId System.String

Correlation ID for the orchestration run.

Returns

IProgressReporter

IProgressReporterFactory.Create(string, IEnumerable<IProgressSink>) Method

Creates a reporter with specific sinks for this orchestration.

NexusLabs.Needlr.AgentFramework.Progress.IProgressReporter Create(string workflowId, System.Collections.Generic.IEnumerable<NexusLabs.Needlr.AgentFramework.Progress.IProgressSink> sinks);

Parameters

workflowId System.String

Correlation ID for the orchestration run.

sinks System.Collections.Generic.IEnumerable<IProgressSink>

Sinks to receive events for this orchestration only.

Returns

IProgressReporter