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