7 writes to Arguments
Microsoft.Extensions.AI.Abstractions.Tests (1)
Contents\McpServerToolCallContentTests.cs (1)
43c.Arguments = args;
Microsoft.Extensions.AI.OpenAI (3)
OpenAIResponsesChatClient.cs (3)
217Arguments = JsonSerializer.Deserialize(mtcari.ToolArguments.ToMemory().Span, OpenAIJsonContext.Default.IReadOnlyDictionaryStringObject)!, 456Arguments = JsonSerializer.Deserialize(mtcari.ToolArguments.ToMemory().Span, OpenAIJsonContext.Default.IReadOnlyDictionaryStringObject)!, 1379Arguments = JsonSerializer.Deserialize(mtci.ToolArguments.ToMemory().Span, OpenAIJsonContext.Default.IReadOnlyDictionaryStringObject)!,
Microsoft.Extensions.AI.Tests (3)
ChatCompletion\OpenTelemetryChatClientTests.cs (3)
618new McpServerToolCallContent("mcp-call-1", "myTool", "myServer") { Arguments = new Dictionary<string, object?> { ["param1"] = "value1" } }, 634yield return new() { Contents = [new McpServerToolCallContent("mcp-call-1", "myTool", "myServer") { Arguments = new Dictionary<string, object?> { ["param1"] = "value1" } }] }; 782Arguments = new Dictionary<string, object?> { ["action"] = "delete" }
23 references to Arguments
Microsoft.Extensions.AI (2)
ChatCompletion\OpenTelemetryChatClient.cs (2)
421Arguments = mstcc.Arguments, 445Arguments = mstarc.ToolCall.Arguments,
Microsoft.Extensions.AI.Abstractions.Tests (3)
Contents\McpServerToolCallContentTests.cs (3)
23Assert.Null(c.Arguments); 41Assert.Null(c.Arguments); 44Assert.Same(args, c.Arguments);
Microsoft.Extensions.AI.OpenAI (2)
OpenAIResponsesChatClient.cs (2)
1172BinaryData.FromBytes(JsonSerializer.SerializeToUtf8Bytes(mcpApprovalRequestContent.ToolCall.Arguments!, OpenAIJsonContext.Default.IReadOnlyDictionaryStringObject))); 1187BinaryData.FromBytes(JsonSerializer.SerializeToUtf8Bytes(associatedCall.Arguments!, OpenAIJsonContext.Default.IReadOnlyDictionaryStringObject)));
Microsoft.Extensions.AI.OpenAI.Tests (16)
OpenAIResponseClientTests.cs (16)
1548Assert.NotNull(call.Arguments); 1549Assert.Equal(2, call.Arguments.Count); 1550Assert.Equal("dotnet/extensions", ((JsonElement)call.Arguments["repoName"]!).GetString()); 1551Assert.Equal("What is the path to the README.md file for Microsoft.Extensions.AI.Abstractions?", ((JsonElement)call.Arguments["question"]!).GetString()); 1803Assert.NotNull(firstCall.Arguments); 1804Assert.Single(firstCall.Arguments); 1805Assert.Equal("dotnet/extensions", ((JsonElement)firstCall.Arguments["repoName"]!).GetString()); 1816Assert.NotNull(secondCall.Arguments); 1817Assert.Equal("dotnet/extensions", ((JsonElement)secondCall.Arguments["repoName"]!).GetString()); 1818Assert.Equal("What is the path to the README.md file for Microsoft.Extensions.AI.Abstractions?", ((JsonElement)secondCall.Arguments["question"]!).GetString()); 2216Assert.NotNull(firstCall.Arguments); 2217Assert.Single(firstCall.Arguments); 2218Assert.Equal("dotnet/extensions", ((JsonElement)firstCall.Arguments["repoName"]!).GetString()); 2229Assert.NotNull(secondCall.Arguments); 2230Assert.Equal("dotnet/extensions", ((JsonElement)secondCall.Arguments["repoName"]!).GetString()); 2231Assert.Equal("What is the path to the README.md file for Microsoft.Extensions.AI.Abstractions?", ((JsonElement)secondCall.Arguments["question"]!).GetString());