4 writes to ToolCallJsonSerializerOptions
Microsoft.Extensions.AI.Ollama.Tests (4)
OllamaChatClientTests.cs (4)
36Assert.Throws<ArgumentNullException>("value", () => client.ToolCallJsonSerializerOptions = null!); 39client.ToolCallJsonSerializerOptions = options; 362ToolCallJsonSerializerOptions = TestJsonSerializerContext.Default.Options, 454ToolCallJsonSerializerOptions = TestJsonSerializerContext.Default.Options,
4 references to ToolCallJsonSerializerOptions
Microsoft.Extensions.AI.Ollama (2)
OllamaChatClient.cs (2)
426Arguments = JsonSerializer.SerializeToElement(fcc.Arguments, ToolCallJsonSerializerOptions.GetTypeInfo(typeof(IDictionary<string, object?>))), 434JsonElement jsonResult = JsonSerializer.SerializeToElement(frc.Result, ToolCallJsonSerializerOptions.GetTypeInfo(typeof(object)));
Microsoft.Extensions.AI.Ollama.Tests (2)
OllamaChatClientTests.cs (2)
35Assert.Same(client.ToolCallJsonSerializerOptions, AIJsonUtilities.DefaultOptions); 40Assert.Same(options, client.ToolCallJsonSerializerOptions);