2 writes to _jsonSerializerOptions
Microsoft.Extensions.AI (2)
ChatCompletion\OpenTelemetryChatClient.cs (2)
80
_jsonSerializerOptions
= AIJsonUtilities.DefaultOptions;
87
set =>
_jsonSerializerOptions
= Throw.IfNull(value);
5 references to _jsonSerializerOptions
Microsoft.Extensions.AI (5)
ChatCompletion\OpenTelemetryChatClient.cs (5)
86
get =>
_jsonSerializerOptions
;
125
_jsonSerializerOptions
.MakeReadOnly();
156
_jsonSerializerOptions
.MakeReadOnly();
428
JsonSerializer.SerializeToNode(result,
_jsonSerializerOptions
.GetTypeInfo(result.GetType())) :
489
JsonSerializer.SerializeToNode(fc.Arguments,
_jsonSerializerOptions
.GetTypeInfo(typeof(IDictionary<string, object?>))) :