2 writes to Arguments
Microsoft.Extensions.AI.Abstractions (1)
Contents\FunctionCallContent.cs (1)
30Arguments = arguments;
Microsoft.Extensions.AI.Abstractions.Tests (1)
Contents\FunctionCallContentTests..cs (1)
75c.Arguments = args;
26 references to Arguments
Microsoft.Extensions.AI (2)
ChatCompletion\FunctionInvokingChatClient.cs (1)
569return context.Function.InvokeAsync(context.CallContent.Arguments, cancellationToken);
ChatCompletion\OpenTelemetryChatClient.cs (1)
527JsonSerializer.SerializeToNode(fc.Arguments, _jsonSerializerOptions.GetTypeInfo(typeof(IDictionary<string, object?>))) :
Microsoft.Extensions.AI.Abstractions (2)
Contents\FunctionCallContent.cs (2)
108display += Arguments is not null ? 109$"Call = {Name}({string.Join(", ", Arguments)})" :
Microsoft.Extensions.AI.Abstractions.Tests (13)
ChatCompletion\ChatMessageTests.cs (3)
373Assert.NotNull(functionCallContent.Arguments); 374Assert.Single(functionCallContent.Arguments); 375Assert.Equal("argument", functionCallContent.Arguments["parameter"]?.ToString());
Contents\FunctionCallContentTests..cs (10)
30Assert.Null(c.Arguments); 47Assert.Same(args, c.Arguments); 73Assert.Null(c.Arguments); 76Assert.Same(args, c.Arguments); 99Assert.NotNull(deserializedSut.Arguments); 100Assert.Single(deserializedSut.Arguments); 289Assert.NotNull(content.Arguments); 290Assert.Equal(5, content.Arguments.Count); 291Assert.Collection(content.Arguments, 330Assert.Null(content.Arguments);
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceChatClient.cs (1)
471string jsonArguments = JsonSerializer.Serialize(callRequest.Arguments, serializerOptions.GetTypeInfo(typeof(IDictionary<string, object>)));
Microsoft.Extensions.AI.AzureAIInference.Tests (2)
AzureAIInferenceChatClientTests.cs (2)
431AssertExtensions.EqualFunctionCallParameters(new Dictionary<string, object?> { ["personName"] = "Alice" }, fcc.Arguments); 527AssertExtensions.EqualFunctionCallParameters(new Dictionary<string, object?> { ["personName"] = "Alice" }, fcc.Arguments);
Microsoft.Extensions.AI.Integration.Tests (1)
PromptBasedFunctionCallingChatClient.cs (1)
72var toolCallJson = JsonSerializer.Serialize(new { fcc.CallId, fcc.Name, fcc.Arguments }, _jsonOptions);
Microsoft.Extensions.AI.Ollama (1)
OllamaChatClient.cs (1)
374Arguments = JsonSerializer.SerializeToElement(fcc.Arguments, serializerOptions.GetTypeInfo(typeof(IDictionary<string, object?>))),
Microsoft.Extensions.AI.Ollama.Tests (1)
OllamaChatClientTests.cs (1)
370AssertExtensions.EqualFunctionCallParameters(new Dictionary<string, object?> { ["personName"] = "Alice" }, fcc.Arguments);
Microsoft.Extensions.AI.OpenAI (1)
OpenAIChatClient.cs (1)
636BinaryData.FromObjectAsJson(callRequest.Arguments, ToolCallJsonSerializerOptions)));
Microsoft.Extensions.AI.OpenAI.Tests (2)
OpenAIChatClientTests.cs (2)
477AssertExtensions.EqualFunctionCallParameters(new Dictionary<string, object?> { ["personName"] = "Alice" }, fcc.Arguments); 578AssertExtensions.EqualFunctionCallParameters(new Dictionary<string, object?> { ["personName"] = "Alice" }, fcc.Arguments);