Skip to content

LangfuseExperimentResultSink TCase,TOutput

NexusLabs.Foundry.Langfuse

LangfuseExperimentResultSink<TCase,TOutput> Class

Projects completed canonical experiment measurements to Langfuse trace and dataset-run scores without changing the canonical quality decision.

public sealed class LangfuseExperimentResultSink<TCase,TOutput> : NexusLabs.Foundry.Evaluation.Experiments.IExperimentResultSink<TCase, TOutput>

Type parameters

TCase

The caller-owned case value type.

TOutput

The caller-owned output type.

Inheritance System.Object 🡒 LangfuseExperimentResultSink\<TCase,TOutput>

Implements NexusLabs.Foundry.Evaluation.Experiments.IExperimentResultSink<TCase,TOutput>

Properties

LangfuseExperimentResultSink<TCase,TOutput>.IsRequired Property

Gets a value indicating whether failure contributes to aggregate required-publication failure.

public bool IsRequired { get; }

Implements IsRequired

Property Value

System.Boolean

LangfuseExperimentResultSink<TCase,TOutput>.Name Property

Gets the unique sink name.

public string Name { get; }

Implements Name

Property Value

System.String

Methods

LangfuseExperimentResultSink<TCase,TOutput>.GetPublicationSnapshot() Method

Gets the latest detailed provider-specific publication snapshot.

public NexusLabs.Foundry.Langfuse.LangfuseExperimentResultSinkSnapshot GetPublicationSnapshot();

Returns

LangfuseExperimentResultSinkSnapshot
The latest immutable score and hosted-run publication snapshot.

LangfuseExperimentResultSink<TCase,TOutput>.PublishAsync(ExperimentRunResult<TCase,TOutput>, CancellationToken) Method

Publishes one completed canonical result.

public System.Threading.Tasks.ValueTask<NexusLabs.Foundry.Evaluation.Experiments.ExperimentSinkPublicationOperationResult> PublishAsync(NexusLabs.Foundry.Evaluation.Experiments.ExperimentRunResult<TCase,TOutput> result, System.Threading.CancellationToken cancellationToken);

Parameters

result NexusLabs.Foundry.Evaluation.Experiments.ExperimentRunResult<TCase,TOutput>

The read-only canonical quality result.

cancellationToken System.Threading.CancellationToken

The caller cancellation token.

Implements PublishAsync(ExperimentRunResult<TCase,TOutput>, CancellationToken)

Returns

System.Threading.Tasks.ValueTask<NexusLabs.Foundry.Evaluation.Experiments.ExperimentSinkPublicationOperationResult>
The structured publication operation result.

Remarks

Throw to let the runner synthesize a structured failed result, or return a conforming failed result when the adapter already owns a provider-specific failure classification.