| | | 1 | | using Microsoft.Extensions.AI.Evaluation; |
| | | 2 | | |
| | | 3 | | namespace NexusLabs.Needlr.AgentFramework.Langfuse; |
| | | 4 | | |
| | | 5 | | /// <summary> |
| | | 6 | | /// Inert <see cref="ILangfuseScoreClient"/> registered when Langfuse is not configured, so host |
| | | 7 | | /// applications can always inject the client and call it without branching on configuration state. |
| | | 8 | | /// </summary> |
| | | 9 | | internal sealed class DisabledLangfuseScoreClient : ILangfuseScoreClient |
| | | 10 | | { |
| | | 11 | | /// <inheritdoc /> |
| | 1 | 12 | | public bool IsEnabled => false; |
| | | 13 | | |
| | | 14 | | /// <inheritdoc /> |
| | 1 | 15 | | public int ScoresFailed => 0; |
| | | 16 | | |
| | | 17 | | /// <inheritdoc /> |
| | | 18 | | public Task RecordScoreAsync(string traceId, string name, double value, string? comment = null, CancellationToken ca |
| | 1 | 19 | | Task.CompletedTask; |
| | | 20 | | |
| | | 21 | | /// <inheritdoc /> |
| | | 22 | | public Task RecordScoreAsync(string traceId, string name, bool value, string? comment = null, CancellationToken canc |
| | 0 | 23 | | Task.CompletedTask; |
| | | 24 | | |
| | | 25 | | /// <inheritdoc /> |
| | | 26 | | public Task RecordScoreAsync(string traceId, string name, string value, string? comment = null, CancellationToken ca |
| | 0 | 27 | | Task.CompletedTask; |
| | | 28 | | |
| | | 29 | | /// <inheritdoc /> |
| | | 30 | | public Task RecordEvaluationAsync(string traceId, EvaluationResult result, CancellationToken cancellationToken = def |
| | 0 | 31 | | Task.CompletedTask; |
| | | 32 | | |
| | | 33 | | /// <inheritdoc /> |
| | | 34 | | public Task RecordObservationScoreAsync(string traceId, string observationId, string name, double value, string? com |
| | 0 | 35 | | Task.CompletedTask; |
| | | 36 | | |
| | | 37 | | /// <inheritdoc /> |
| | | 38 | | public Task RecordObservationScoreAsync(string traceId, string observationId, string name, bool value, string? comme |
| | 0 | 39 | | Task.CompletedTask; |
| | | 40 | | |
| | | 41 | | /// <inheritdoc /> |
| | | 42 | | public Task RecordObservationScoreAsync(string traceId, string observationId, string name, string value, string? com |
| | 0 | 43 | | Task.CompletedTask; |
| | | 44 | | |
| | | 45 | | /// <inheritdoc /> |
| | | 46 | | public Task RecordSessionScoreAsync(string sessionId, string name, double value, string? comment = null, Cancellatio |
| | 0 | 47 | | Task.CompletedTask; |
| | | 48 | | |
| | | 49 | | /// <inheritdoc /> |
| | | 50 | | public Task RecordSessionScoreAsync(string sessionId, string name, bool value, string? comment = null, CancellationT |
| | 0 | 51 | | Task.CompletedTask; |
| | | 52 | | |
| | | 53 | | /// <inheritdoc /> |
| | | 54 | | public Task RecordSessionScoreAsync(string sessionId, string name, string value, string? comment = null, Cancellatio |
| | 0 | 55 | | Task.CompletedTask; |
| | | 56 | | } |