Generated the JSON contracts of visual briefings and model answers at compile time (#1151)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-03 14:20:41 +01:00
1 parent 24e3c22db3
commit 770c16e20a
101 files changed
+2333 -392

No files matched your search

@@ -0,0 +1,22 @@
namespace AIStudio.Assistants.VisualBriefing;
/// <summary>
/// The evidence which the plan and content stages show their models.
/// </summary>
/// <param name="Facts">The facts of the evidence.</param>
/// <param name="Metrics">The metrics of the evidence.</param>
/// <param name="Tables">The tables of the evidence.</param>
/// <param name="AssetPlan">The planned pictures of the briefing.</param>
internal sealed record VisualBriefingEvidencePrompt(
List<VisualBriefingEvidenceFact> Facts,
List<VisualBriefingEvidenceMetric> Metrics,
List<VisualBriefingEvidenceTable> Tables,
List<VisualBriefingAssetPlanItem> AssetPlan)
{
/// <summary>
/// Gathers what a model gets to see of an evidence artifact.
/// </summary>
/// <param name="evidence">The evidence artifact.</param>
/// <returns>The evidence for the prompt.</returns>
internal static VisualBriefingEvidencePrompt Of(VisualBriefingEvidenceArtifact evidence) => new(evidence.Facts, evidence.Metrics, evidence.Tables, evidence.AssetPlan);
}