mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-11 06:08:19 +00:00
Generated the JSON contracts of visual briefings and model answers at compile time (#1151)
This commit is contained in:
1 parent
24e3c22db3
commit
770c16e20a
101 files changed
+2333
-392
No files matched your search
@@ -0,0 +1,20 @@
|
||||
using System.Text.Json;
|
||||
|
||||
namespace AIStudio.Assistants.VisualBriefing;
|
||||
|
||||
/// <summary>
|
||||
/// The data of a compiled briefing, which its template binds to.
|
||||
/// </summary>
|
||||
/// <param name="Slots">The content of each slot, by its ID.</param>
|
||||
/// <param name="Charts">The chart-library option object of each chart, by the ID of its component.</param>
|
||||
/// <param name="Interactions">The controls, their state, and the formulas of the briefing.</param>
|
||||
/// <param name="Accessibility">The text for people who cannot see a component, by the ID of the component.</param>
|
||||
/// <param name="SourceReferences">The sources of each component, by the ID of the component.</param>
|
||||
/// <param name="Labels">The fixed labels which the runtime of the briefing shows.</param>
|
||||
internal sealed record VisualBriefingCompiledData(
|
||||
Dictionary<string, JsonElement> Slots,
|
||||
Dictionary<string, JsonElement> Charts,
|
||||
JsonElement Interactions,
|
||||
Dictionary<string, string> Accessibility,
|
||||
Dictionary<string, List<string>> SourceReferences,
|
||||
VisualBriefingLabels Labels);
|
||||
Reference in new issue
Block a user