Skip to content

LangfuseScoreConfig

NexusLabs.Needlr.AgentFramework.Langfuse

LangfuseScoreConfig Class

Declares the shape of a named Langfuse score so the dashboard renders consistent ranges, colors, and category sets and validates incoming values. Created via EnsureScoreConfigAsync(LangfuseScoreConfig, CancellationToken).

public sealed record LangfuseScoreConfig : System.IEquatable<NexusLabs.Needlr.AgentFramework.Langfuse.LangfuseScoreConfig>

Inheritance System.Object 🡒 LangfuseScoreConfig

Implements System.IEquatable<LangfuseScoreConfig>

Remarks

Score configs are project-level setup, typically ensured once at the start of an eval suite. They are matched to scores by Name, so use the same name you pass when recording the score (and the same casing/normalization).

Properties

LangfuseScoreConfig.Categories Property

Gets the allowed categories for a Categorical score. Required for categorical configs; must be omitted for other data types (boolean categories are generated by Langfuse).

public System.Collections.Generic.IReadOnlyList<NexusLabs.Needlr.AgentFramework.Langfuse.LangfuseScoreConfigCategory>? Categories { get; init; }

Property Value

System.Collections.Generic.IReadOnlyList<LangfuseScoreConfigCategory>

LangfuseScoreConfig.DataType Property

Gets the data type the score values must conform to.

public NexusLabs.Needlr.AgentFramework.Langfuse.LangfuseScoreDataType DataType { get; init; }

Property Value

LangfuseScoreDataType

LangfuseScoreConfig.Description Property

Gets an optional description shown across the Langfuse UI.

public string? Description { get; init; }

Property Value

System.String

LangfuseScoreConfig.MaxValue Property

Gets the inclusive maximum for Numeric scores. Ignored for other data types. null leaves the maximum unbounded.

public System.Nullable<double> MaxValue { get; init; }

Property Value

System.Nullable<System.Double>

LangfuseScoreConfig.MinValue Property

Gets the inclusive minimum for Numeric scores. Ignored for other data types. null leaves the minimum unbounded.

public System.Nullable<double> MinValue { get; init; }

Property Value

System.Nullable<System.Double>

LangfuseScoreConfig.Name Property

Gets the score config name (max 35 characters; letters, numbers, underscores, spaces, periods, parentheses, and hyphens). Must match the score name used when recording.

public string Name { get; init; }

Property Value

System.String