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