LangfuseExperimentItemScopeOptions TCase
NexusLabs.Foundry.Langfuse¶
LangfuseExperimentItemScopeOptions<TCase> Class¶
Configures Langfuse scenario traces and publication behavior for provider-neutral experiment trials.
public sealed record LangfuseExperimentItemScopeOptions<TCase> : System.IEquatable<NexusLabs.Foundry.Langfuse.LangfuseExperimentItemScopeOptions<TCase>>
Type parameters¶
TCase
The caller-owned case value type.
Inheritance System.Object 🡒 LangfuseExperimentItemScopeOptions\<TCase>
Implements System.IEquatable<NexusLabs.Foundry.Langfuse.LangfuseExperimentItemScopeOptions<TCase>>
Properties¶
LangfuseExperimentItemScopeOptions<TCase>.FailureMode Property¶
Gets the behavior when Langfuse scope entry or activation fails.
public NexusLabs.Foundry.Evaluation.Experiments.ExperimentItemScopeFailureMode FailureMode { get; init; }
Property Value¶
NexusLabs.Foundry.Evaluation.Experiments.ExperimentItemScopeFailureMode
LangfuseExperimentItemScopeOptions<TCase>.IsRequired Property¶
Gets a value indicating whether Langfuse publication failure is required for aggregate publication health.
Property Value¶
LangfuseExperimentItemScopeOptions<TCase>.Metadata Property¶
Gets optional filterable metadata applied to every item trace.
Property Value¶
System.Collections.Generic.IReadOnlyDictionary<System.String,System.String>
LangfuseExperimentItemScopeOptions<TCase>.ScenarioNameFactory Property¶
Gets an optional factory for the stable trace name used by one statistical trial.
public System.Func<NexusLabs.Foundry.Evaluation.Experiments.ExperimentItemScopeContext<TCase>,string?>? ScenarioNameFactory { get; init; }
Property Value¶
System.Func<NexusLabs.Foundry.Evaluation.Experiments.ExperimentItemScopeContext<TCase>,System.String>
Remarks¶
Prefer low-cardinality names. Put run, case, and trial identifiers in metadata rather than generating a distinct trace name for every item.
LangfuseExperimentItemScopeOptions<TCase>.Tags Property¶
Gets optional tags applied to every item trace.