mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 09: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
@@ -13,18 +13,19 @@ namespace AIStudio.Assistants.ERI;
|
||||
/// </remarks>
|
||||
internal sealed class ERIServerFileList
|
||||
{
|
||||
private static readonly JsonSerializerOptions JSON_OPTIONS = new()
|
||||
internal static readonly JsonSerializerOptions JSON_OPTIONS = new JsonSerializerOptions
|
||||
{
|
||||
PropertyNamingPolicy = JsonNamingPolicy.CamelCase,
|
||||
AllowTrailingCommas = false,
|
||||
ReadCommentHandling = JsonCommentHandling.Disallow,
|
||||
MaxDepth = 8,
|
||||
};
|
||||
TypeInfoResolver = ERIServerFileListJsonContext.Default,
|
||||
}.AsReadOnly();
|
||||
|
||||
/// <summary>
|
||||
/// The paths of the files, relative to the base directory.
|
||||
/// </summary>
|
||||
public List<string>? Files { get; init; }
|
||||
public List<string>? Files { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Reads the list of files out of the answer of the model.
|
||||
|
||||
Reference in new issue
Block a user