mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 06:27:21 +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,14 @@
|
||||
using System.Text.Json;
|
||||
|
||||
namespace AIStudio.Assistants.VisualBriefing;
|
||||
|
||||
/// <summary>
|
||||
/// The interactions in the data of a briefing: its controls, their state, and the formulas which depend on them.
|
||||
/// </summary>
|
||||
/// <param name="Controls">The validated interaction controls.</param>
|
||||
/// <param name="State">The initial value of each control, by its ID.</param>
|
||||
/// <param name="Formulas">The formula of each result slot, by the ID of the slot.</param>
|
||||
internal sealed record VisualBriefingInteractionData(
|
||||
IReadOnlyList<VisualBriefingControlSpec> Controls,
|
||||
Dictionary<string, JsonElement> State,
|
||||
Dictionary<string, VisualBriefingFormulaNode> Formulas);
|
||||
Reference in new issue
Block a user