Added the research on individual participants to the BeyondFacts Lab (#1207)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-15 15:39:34 +01:00
1 parent 3ca4b3878b
commit 92d0ff68f4
69 files changed
+3869 -186

No files matched your search

@@ -0,0 +1,24 @@
using System.Text.Json;
namespace AIStudio.Assistants.BeyondFactsLab;
/// <summary>
/// How the BeyondFacts Lab reads the JSON which models write for it.
/// </summary>
internal static class BflModelAnswerJson
{
/// <summary>
/// The options for the JSON in a model answer. They forgive what models often write, such as trailing commas,
/// comments, or another case, but refuse a field named twice: another reader might see its other value.
/// </summary>
internal static readonly JsonSerializerOptions OPTIONS = new JsonSerializerOptions
{
PropertyNamingPolicy = JsonNamingPolicy.CamelCase,
PropertyNameCaseInsensitive = true,
AllowTrailingCommas = true,
ReadCommentHandling = JsonCommentHandling.Skip,
RespectNullableAnnotations = true,
AllowDuplicateProperties = false,
TypeInfoResolver = BflModelAnswerJsonContext.Default,
}.AsReadOnly();
}