| File: OpenAIJsonContext.cs | Web Access |
| Project: src\src\Libraries\Microsoft.Extensions.AI.OpenAI\Microsoft.Extensions.AI.OpenAI.csproj (Microsoft.Extensions.AI.OpenAI) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Text.Json; using System.Text.Json.Serialization; using Microsoft.Shared.DiagnosticIds; namespace Microsoft.Extensions.AI; /// <summary>Source-generated JSON type information for use by all OpenAI implementations.</summary> [Experimental(DiagnosticIds.Experiments.AIOpenAIResponses)] [JsonSourceGenerationOptions(JsonSerializerDefaults.Web, UseStringEnumConverter = true, DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull, WriteIndented = true)] [JsonSerializable(typeof(OpenAIClientExtensions.ToolJson))] [JsonSerializable(typeof(IDictionary<string, object?>))] [JsonSerializable(typeof(IReadOnlyDictionary<string, object?>))] [JsonSerializable(typeof(string[]))] [JsonSerializable(typeof(IEnumerable<string>))] [JsonSerializable(typeof(JsonElement))] [JsonSerializable(typeof(List<OpenAIResponsesChatClient.FunctionToolCallOutputElement>))] internal sealed partial class OpenAIJsonContext : JsonSerializerContext;