mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-04 06:47:21 +00:00
17 lines
721 B
C#
17 lines
721 B
C#
using System.Text.Json.Serialization;
|
|
|
|
using ERIContentType = AIStudio.Tools.ERIClient.DataModel.ContentType;
|
|
|
|
namespace AIStudio.Chat;
|
|
|
|
/// <summary>
|
|
/// The contracts with which System.Text.Json reads and writes chats, built at compile time.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Two types with the same name need a name of their own for their contract, else the generator builds
|
|
/// only the first of them and warns with SYSLIB1031.
|
|
/// </remarks>
|
|
[JsonSourceGenerationOptions(GenerationMode = JsonSourceGenerationMode.Metadata)]
|
|
[JsonSerializable(typeof(ChatThread))]
|
|
[JsonSerializable(typeof(ERIContentType), TypeInfoPropertyName = "ERIContentType")]
|
|
internal sealed partial class ChatJsonContext : JsonSerializerContext; |