Skip to content

LangfuseScoreError

NexusLabs.Needlr.AgentFramework.Langfuse

LangfuseScoreError Class

Describes a single failed attempt to upload an evaluation score to Langfuse. Passed to ScoreErrorCallback when NonFatal is in effect, so callers can log the loss with their own logger.

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

Inheritance System.Object 🡒 LangfuseScoreError

Implements System.IEquatable<LangfuseScoreError>

Constructors

LangfuseScoreError(string, string, Exception) Constructor

Describes a single failed attempt to upload an evaluation score to Langfuse. Passed to ScoreErrorCallback when NonFatal is in effect, so callers can log the loss with their own logger.

public LangfuseScoreError(string ScoreName, string? TraceId, System.Exception Exception);

Parameters

ScoreName System.String

The name of the score that failed to upload.

TraceId System.String

The Langfuse trace id the score was destined for, if known.

Exception System.Exception

The exception describing the failure.

Properties

LangfuseScoreError.Exception Property

The exception describing the failure.

public System.Exception Exception { get; init; }

Property Value

System.Exception

LangfuseScoreError.ScoreName Property

The name of the score that failed to upload.

public string ScoreName { get; init; }

Property Value

System.String

LangfuseScoreError.TraceId Property

The Langfuse trace id the score was destined for, if known.

public string? TraceId { get; init; }

Property Value

System.String