mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-23 09:13:48 +00:00
Moved the background agents to AI operations (#1215)
This commit is contained in:
1 parent
8a4a26503b
commit
c50a93cd17
139 files changed
+4069
-2340
No files matched your search
@@ -0,0 +1,21 @@
|
||||
using System.Text.Json;
|
||||
|
||||
namespace AIStudio.AIOperations;
|
||||
|
||||
/// <summary>
|
||||
/// How AI operations read the JSON in the answers of models.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Find the JSON in an answer with ModelAnswerJson first, then read it with these options.
|
||||
/// </remarks>
|
||||
internal static class AIOperationsJson
|
||||
{
|
||||
/// <summary>
|
||||
/// The options for the JSON in a model answer to an AI operation.
|
||||
/// </summary>
|
||||
internal static readonly JsonSerializerOptions OPTIONS = new JsonSerializerOptions
|
||||
{
|
||||
PropertyNamingPolicy = JsonNamingPolicy.SnakeCaseLower,
|
||||
TypeInfoResolver = AIOperationsJsonContext.Default,
|
||||
}.AsReadOnly();
|
||||
}
|
||||
Reference in new issue
Block a user