2 references to Deserialize
Microsoft.Extensions.AI (2)
ChatCompletion\DistributedCachingChatClient.cs (2)
53
return (ChatCompletion?)JsonSerializer.
Deserialize
(existingJson, _jsonSerializerOptions.GetTypeInfo(typeof(ChatCompletion)));
67
return (IReadOnlyList<StreamingChatCompletionUpdate>?)JsonSerializer.
Deserialize
(existingJson, _jsonSerializerOptions.GetTypeInfo(typeof(IReadOnlyList<StreamingChatCompletionUpdate>)));