2 writes to ToolCallJsonSerializerOptions
Microsoft.Extensions.AI.AzureAIInference.Tests (2)
AzureAIInferenceChatClientTests.cs (2)
41Assert.Throws<ArgumentNullException>("value", () => client.ToolCallJsonSerializerOptions = null!); 44client.ToolCallJsonSerializerOptions = options;
5 references to ToolCallJsonSerializerOptions
Microsoft.Extensions.AI.AzureAIInference (3)
AzureAIInferenceChatClient.cs (3)
330byte[] data = JsonSerializer.SerializeToUtf8Bytes(prop.Value, ToolCallJsonSerializerOptions.GetTypeInfo(typeof(object))); 432result = JsonSerializer.Serialize(resultContent.Result, ToolCallJsonSerializerOptions.GetTypeInfo(typeof(object))); 464JsonSerializer.Serialize(callRequest.Arguments, ToolCallJsonSerializerOptions.GetTypeInfo(typeof(IDictionary<string, object>))))));
Microsoft.Extensions.AI.AzureAIInference.Tests (2)
AzureAIInferenceChatClientTests.cs (2)
40Assert.Same(client.ToolCallJsonSerializerOptions, AIJsonUtilities.DefaultOptions); 45Assert.Same(options, client.ToolCallJsonSerializerOptions);