AI-Studio/app/MindWork AI Studio/Assistants/VisualBriefing/VisualBriefingEvidenceMetric.cs
2026-07-30 19:36:52 +02:00

30 lines
995 B
C#

using System.Text.Json.Serialization;
namespace AIStudio.Assistants.VisualBriefing;
/// <summary>
/// Describes one sourced numeric metric extracted during evidence analysis.
/// </summary>
[JsonUnmappedMemberHandling(JsonUnmappedMemberHandling.Disallow)]
public sealed class VisualBriefingEvidenceMetric
{
/// <summary>Gets or sets the stable evidence identifier.</summary>
[JsonRequired]
public string EvidenceId { get; set; } = string.Empty;
/// <summary>Gets or sets the metric label.</summary>
[JsonRequired]
public string Label { get; set; } = string.Empty;
/// <summary>Gets or sets the numeric value.</summary>
[JsonRequired]
public decimal Value { get; set; }
/// <summary>Gets or sets the value unit.</summary>
[JsonRequired]
public string Unit { get; set; } = string.Empty;
/// <summary>Gets or sets the source handles supporting the metric.</summary>
[JsonRequired]
public List<string> SourceIds { get; set; } = [];
}