feat: saving token data to sessions
This commit is contained in:
@@ -1,28 +1,29 @@
|
||||
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;
|
||||
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[]))]
|
||||
[JsonSerializable(typeof(TokenMetadata))]
|
||||
[JsonSourceGenerationOptions(
|
||||
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull,
|
||||
PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase)]
|
||||
internal partial class AppJsonContext : JsonSerializerContext;
|
||||
|
||||
Reference in New Issue
Block a user