-
Notifications
You must be signed in to change notification settings - Fork 841
Add types from AIJsonUtilities.JsonContext to reporting JsonContext #6078
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
94dfa96
77e5b08
c1c7377
d7a9d3c
b7c58f4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,10 @@ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the MIT license. | ||
|
|
||
| using System; | ||
| using System.Collections.Generic; | ||
| using System.Text.Json; | ||
| using System.Text.Json.Nodes; | ||
| using System.Text.Json.Serialization; | ||
| using Microsoft.Extensions.AI.Evaluation.Reporting.Formats; | ||
| using static Microsoft.Extensions.AI.Evaluation.Reporting.Storage.DiskBasedResponseCache; | ||
|
|
@@ -12,6 +15,38 @@ | |
| [JsonSerializable(typeof(Dataset))] | ||
| [JsonSerializable(typeof(CacheEntry))] | ||
| [JsonSerializable(typeof(CacheOptions))] | ||
| // Sync with types in AIJsonUtilities.JsonContext | ||
|
Check failure on line 18 in src/Libraries/Microsoft.Extensions.AI.Evaluation.Reporting/CSharp/JsonSerialization/SerializerContext.cs
|
||
peterwald marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| [JsonSerializable(typeof(IList<ChatMessage>))] | ||
| [JsonSerializable(typeof(ChatOptions))] | ||
| [JsonSerializable(typeof(EmbeddingGenerationOptions))] | ||
| [JsonSerializable(typeof(ChatClientMetadata))] | ||
| [JsonSerializable(typeof(EmbeddingGeneratorMetadata))] | ||
| [JsonSerializable(typeof(ChatResponse))] | ||
| [JsonSerializable(typeof(ChatResponseUpdate))] | ||
| [JsonSerializable(typeof(IReadOnlyList<ChatResponseUpdate>))] | ||
| [JsonSerializable(typeof(Dictionary<string, object>))] | ||
| [JsonSerializable(typeof(IDictionary<string, object?>))] | ||
| [JsonSerializable(typeof(JsonDocument))] | ||
| [JsonSerializable(typeof(JsonElement))] | ||
| [JsonSerializable(typeof(JsonNode))] | ||
| [JsonSerializable(typeof(IEnumerable<string>))] | ||
| [JsonSerializable(typeof(string))] | ||
| [JsonSerializable(typeof(int))] | ||
| [JsonSerializable(typeof(long))] | ||
| [JsonSerializable(typeof(float))] | ||
| [JsonSerializable(typeof(double))] | ||
| [JsonSerializable(typeof(bool))] | ||
| [JsonSerializable(typeof(TimeSpan))] | ||
| [JsonSerializable(typeof(DateTimeOffset))] | ||
| [JsonSerializable(typeof(Embedding))] | ||
| [JsonSerializable(typeof(Embedding<byte>))] | ||
| [JsonSerializable(typeof(Embedding<int>))] | ||
| #if NET | ||
| [JsonSerializable(typeof(Embedding<Half>))] | ||
| #endif | ||
| [JsonSerializable(typeof(Embedding<float>))] | ||
| [JsonSerializable(typeof(Embedding<double>))] | ||
| [JsonSerializable(typeof(AIContent))] | ||
peterwald marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| [JsonSourceGenerationOptions( | ||
| Converters = [ | ||
| typeof(CamelCaseEnumConverter<EvaluationDiagnosticSeverity>), | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.