| | | 1 | | namespace NexusLabs.Needlr.AgentFramework.Langfuse; |
| | | 2 | | |
| | | 3 | | /// <summary> |
| | | 4 | | /// Serializable payload for <c>POST /api/public/dataset-run-items</c>, the join that links a trace |
| | | 5 | | /// to a dataset item within a named run. Property names are projected to camelCase by |
| | | 6 | | /// <see cref="LangfuseApiClient"/>. |
| | | 7 | | /// </summary> |
| | | 8 | | internal sealed record LangfuseCreateDatasetRunItemRequest |
| | | 9 | | { |
| | | 10 | | /// <summary>Gets the run name. Langfuse creates the run on first use.</summary> |
| | 4 | 11 | | public required string RunName { get; init; } |
| | | 12 | | |
| | | 13 | | /// <summary>Gets the optional run description (updates the run if it already exists).</summary> |
| | 4 | 14 | | public string? RunDescription { get; init; } |
| | | 15 | | |
| | | 16 | | /// <summary>Gets the id of the dataset item being evaluated.</summary> |
| | 4 | 17 | | public required string DatasetItemId { get; init; } |
| | | 18 | | |
| | | 19 | | /// <summary>Gets the id of the trace produced while evaluating the item.</summary> |
| | 4 | 20 | | public required string TraceId { get; init; } |
| | | 21 | | |
| | | 22 | | /// <summary>Gets the optional id of a specific observation within the trace.</summary> |
| | 2 | 23 | | public string? ObservationId { get; init; } |
| | | 24 | | } |