Skip to content

LangfuseExperimentResultSinkExtensions

NexusLabs.Foundry.Langfuse

LangfuseExperimentResultSinkExtensions Class

Creates provider-neutral result sinks from the built-in Langfuse client or session.

public static class LangfuseExperimentResultSinkExtensions

Inheritance System.Object 🡒 LangfuseExperimentResultSinkExtensions

Methods

LangfuseExperimentResultSinkExtensions.CreateExperimentResultSink<TCase,TOutput>(this ILangfuseClient, ILangfuseExperimentRun) Method

Creates a sink that projects canonical item metrics, successful run evaluations, and an optional decision score through one hosted Langfuse experiment run using default projection identity and publication behavior.

public static NexusLabs.Foundry.Langfuse.LangfuseExperimentResultSink<TCase,TOutput> CreateExperimentResultSink<TCase,TOutput>(this NexusLabs.Foundry.Langfuse.ILangfuseClient client, NexusLabs.Foundry.Langfuse.ILangfuseExperimentRun run);

Type parameters

TCase

The caller-owned case value type.

TOutput

The caller-owned output type.

Parameters

client ILangfuseClient

The built-in Langfuse client or session.

run ILangfuseExperimentRun

The hosted run that owns dataset-run identity and run-score state.

Returns

NexusLabs.Foundry.Langfuse.LangfuseExperimentResultSink<TCase,TOutput>
The Langfuse result sink.

Exceptions

System.ArgumentNullException
client or run is null.

System.NotSupportedException
client does not expose the built-in Langfuse result-sink capability.

System.ArgumentException
run does not expose structured built-in score publication.

LangfuseExperimentResultSinkExtensions.CreateExperimentResultSink<TCase,TOutput>(this ILangfuseClient, ILangfuseExperimentRun, LangfuseExperimentResultSinkOptions<TCase,TOutput>) Method

Creates a sink that projects canonical item metrics, successful run evaluations, and an optional decision score through one hosted Langfuse experiment run using explicit projection identity and publication behavior.

public static NexusLabs.Foundry.Langfuse.LangfuseExperimentResultSink<TCase,TOutput> CreateExperimentResultSink<TCase,TOutput>(this NexusLabs.Foundry.Langfuse.ILangfuseClient client, NexusLabs.Foundry.Langfuse.ILangfuseExperimentRun run, NexusLabs.Foundry.Langfuse.LangfuseExperimentResultSinkOptions<TCase,TOutput> options);

Type parameters

TCase

The caller-owned case value type.

TOutput

The caller-owned output type.

Parameters

client ILangfuseClient

The built-in Langfuse client or session.

run ILangfuseExperimentRun

The hosted run that owns dataset-run identity and run-score state.

options NexusLabs.Foundry.Langfuse.LangfuseExperimentResultSinkOptions<TCase,TOutput>

The projection identity and publication behavior.

Returns

NexusLabs.Foundry.Langfuse.LangfuseExperimentResultSink<TCase,TOutput>
The Langfuse result sink.

Exceptions

System.ArgumentNullException
client, run, or options is null.

System.NotSupportedException
client does not expose the built-in Langfuse result-sink capability.

System.ArgumentException
run does not expose structured built-in score publication.

LangfuseExperimentResultSinkExtensions.CreateLocalExperimentResultSink<TCase,TOutput>(this ILangfuseClient) Method

Creates a local sink that projects canonical item metrics to trace scores without creating dataset-run scores, using default projection identity and publication behavior.

public static NexusLabs.Foundry.Langfuse.LangfuseExperimentResultSink<TCase,TOutput> CreateLocalExperimentResultSink<TCase,TOutput>(this NexusLabs.Foundry.Langfuse.ILangfuseClient client);

Type parameters

TCase

The caller-owned case value type.

TOutput

The caller-owned output type.

Parameters

client ILangfuseClient

The built-in Langfuse client or session.

Returns

NexusLabs.Foundry.Langfuse.LangfuseExperimentResultSink<TCase,TOutput>
The local Langfuse result sink.

Exceptions

System.ArgumentNullException
client is null.

System.NotSupportedException
client does not expose the built-in Langfuse result-sink capability.

LangfuseExperimentResultSinkExtensions.CreateLocalExperimentResultSink<TCase,TOutput>(this ILangfuseClient, LangfuseExperimentResultSinkOptions<TCase,TOutput>) Method

Creates a local sink that projects canonical item metrics to trace scores without creating dataset-run scores, using explicit projection identity and publication behavior.

public static NexusLabs.Foundry.Langfuse.LangfuseExperimentResultSink<TCase,TOutput> CreateLocalExperimentResultSink<TCase,TOutput>(this NexusLabs.Foundry.Langfuse.ILangfuseClient client, NexusLabs.Foundry.Langfuse.LangfuseExperimentResultSinkOptions<TCase,TOutput> options);

Type parameters

TCase

The caller-owned case value type.

TOutput

The caller-owned output type.

Parameters

client ILangfuseClient

The built-in Langfuse client or session.

options NexusLabs.Foundry.Langfuse.LangfuseExperimentResultSinkOptions<TCase,TOutput>

The projection identity and publication behavior.

Returns

NexusLabs.Foundry.Langfuse.LangfuseExperimentResultSink<TCase,TOutput>
The local Langfuse result sink.

Exceptions

System.ArgumentNullException
client or options is null.

System.NotSupportedException
client does not expose the built-in Langfuse result-sink capability.