29 lines
1.1 KiB
C#
29 lines
1.1 KiB
C#
using System.Text.Json.Serialization;
|
|
using AnchorCli.OpenRouter;
|
|
using AnchorCli.Tools;
|
|
|
|
namespace AnchorCli;
|
|
|
|
/// <summary>
|
|
/// Source-generated JSON serializer context for Native AOT compatibility.
|
|
/// Covers all parameter / return types used by AIFunction tool methods
|
|
/// and the OpenRouter models API.
|
|
/// </summary>
|
|
[JsonSerializable(typeof(string))]
|
|
[JsonSerializable(typeof(string[]))]
|
|
[JsonSerializable(typeof(int))]
|
|
[JsonSerializable(typeof(bool))]
|
|
[JsonSerializable(typeof(string[][]))]
|
|
[JsonSerializable(typeof(ModelsResponse))]
|
|
[JsonSerializable(typeof(ModelInfo))]
|
|
[JsonSerializable(typeof(ModelPricing))]
|
|
[JsonSerializable(typeof(Microsoft.Extensions.AI.ChatMessage))]
|
|
[JsonSerializable(typeof(System.Collections.Generic.List<Microsoft.Extensions.AI.ChatMessage>))]
|
|
[JsonSerializable(typeof(AnchorConfig))]
|
|
[JsonSerializable(typeof(BatchOperation))]
|
|
[JsonSerializable(typeof(BatchOperation[]))]
|
|
[JsonSourceGenerationOptions(
|
|
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull,
|
|
PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase)]
|
|
internal partial class AppJsonContext : JsonSerializerContext;
|