LangfuseMetricsQuery
NexusLabs.Needlr.AgentFramework.Langfuse¶
LangfuseMetricsQuery Class¶
A query against the Langfuse Metrics API (GET /api/public/metrics). Use it to read
aggregates back from Langfuse — for example to drive a CI quality gate from recorded eval scores.
public sealed record LangfuseMetricsQuery : System.IEquatable<NexusLabs.Needlr.AgentFramework.Langfuse.LangfuseMetricsQuery>
Inheritance System.Object 🡒 LangfuseMetricsQuery
Implements System.IEquatable<LangfuseMetricsQuery>
Remarks¶
Langfuse ingests asynchronously, so freshly recorded data may take a few seconds to appear in metrics. Flush and allow for ingestion lag before asserting on results.
Properties¶
LangfuseMetricsQuery.Dimensions Property¶
Gets the dimension field names to group by. Empty produces a single aggregate row.
Property Value¶
System.Collections.Generic.IReadOnlyList<System.String>
LangfuseMetricsQuery.Filters Property¶
Gets the filters to apply.
public System.Collections.Generic.IReadOnlyList<NexusLabs.Needlr.AgentFramework.Langfuse.LangfuseMetricsFilter> Filters { get; init; }
Property Value¶
System.Collections.Generic.IReadOnlyList<LangfuseMetricsFilter>
LangfuseMetricsQuery.FromTimestamp Property¶
Gets the inclusive start of the time window.
Property Value¶
LangfuseMetricsQuery.Metrics Property¶
Gets the measures and aggregations to compute.
public System.Collections.Generic.IReadOnlyList<NexusLabs.Needlr.AgentFramework.Langfuse.LangfuseMetric> Metrics { get; init; }
Property Value¶
System.Collections.Generic.IReadOnlyList<LangfuseMetric>
LangfuseMetricsQuery.ToTimestamp Property¶
Gets the exclusive end of the time window.
Property Value¶
LangfuseMetricsQuery.View Property¶
Gets the view to query.