14 writes to Arguments
Microsoft.Extensions.AI.Abstractions.Tests (4)
Contents\McpServerToolCallContentTests.cs (2)
44c.Arguments = args; 67Arguments = new Dictionary<string, object?> { { "arg1", "value1" } }
Contents\ToolApprovalRequestContentTests.cs (1)
25new McpServerToolCallContent("MCC1", "TestTool", "TestServer") { Arguments = new Dictionary<string, object?> { { "arg1", "value1" } } },
Contents\ToolApprovalResponseContentTests.cs (1)
25new McpServerToolCallContent("MCC1", "TestTool", "TestServer") { Arguments = new Dictionary<string, object?> { { "arg1", "value1" } } },
Microsoft.Extensions.AI.OpenAI (5)
OpenAIRealtimeClientSession.cs (2)
1188Arguments = arguments, 1225Arguments = arguments,
OpenAIResponsesChatClient.cs (3)
228Arguments = JsonSerializer.Deserialize(mtcari.ToolArguments, OpenAIJsonContext.Default.IDictionaryStringObject), 531Arguments = JsonSerializer.Deserialize(mtcari.ToolArguments, OpenAIJsonContext.Default.IDictionaryStringObject), 1847Arguments = JsonSerializer.Deserialize(mtci.ToolArguments, OpenAIJsonContext.Default.IDictionaryStringObject),
Microsoft.Extensions.AI.OpenAI.Tests (1)
OpenAIConversionTests.cs (1)
1489var mcpToolCall = new McpServerToolCallContent("call_123", "get_weather", "weather_server") { Arguments = new Dictionary<string, object?> { ["city"] = "Seattle" } };
Microsoft.Extensions.AI.Tests (4)
ChatCompletion\FunctionInvokingChatClientApprovalsTests.cs (1)
2096Arguments = mstcc.Arguments,
ChatCompletion\OpenTelemetryChatClientTests.cs (3)
665new McpServerToolCallContent("mcp-call-1", "myTool", "myServer") { Arguments = new Dictionary<string, object?> { ["param1"] = "value1" } }, 690yield return new() { Contents = [new McpServerToolCallContent("mcp-call-1", "myTool", "myServer") { Arguments = new Dictionary<string, object?> { ["param1"] = "value1" } }] }; 838Arguments = new Dictionary<string, object?> { ["action"] = "delete" }
43 references to Arguments
Microsoft.Extensions.AI (5)
Common\OtelMessageSerializer.cs (3)
183Arguments = mstcc.Arguments as IReadOnlyDictionary<string, object?> ?? mstcc.Arguments?.ToDictionary(k => k.Key, v => v.Value), 207Arguments = mcpToolCall.Arguments,
Realtime\OpenTelemetryRealtimeClientSession.cs (2)
603Arguments = mstcc.Arguments as IReadOnlyDictionary<string, object?> ?? mstcc.Arguments?.ToDictionary(k => k.Key, v => v.Value),
Microsoft.Extensions.AI.Abstractions.Tests (9)
AssertExtensions.cs (2)
80McpServerToolCallContent mcp => (mcp.Name, mcp.Arguments), 87McpServerToolCallContent mcp => (mcp.Name, mcp.Arguments),
Contents\McpServerToolCallContentTests.cs (7)
24Assert.Null(c.Arguments); 42Assert.Null(c.Arguments); 45Assert.Same(args, c.Arguments); 85Assert.NotNull(deserializedContent.Arguments); 86Assert.Equal("value1", deserializedContent.Arguments["arg1"]?.ToString()); 115Assert.NotNull(mcpCall.Arguments); 116Assert.Equal("val1", mcpCall.Arguments["arg1"]?.ToString());
Microsoft.Extensions.AI.OpenAI (2)
OpenAIResponsesChatClient.cs (2)
1596mcpToolCall.Arguments!, 1608associatedCall.Arguments!,
Microsoft.Extensions.AI.OpenAI.Tests (24)
OpenAIConversionTests.cs (4)
1062Assert.NotNull(correlatedMcpCall.Arguments); 1063Assert.Equal("dotnet/extensions", correlatedMcpCall.Arguments["repo"]?.ToString()); 1375Assert.NotNull(correlatedMcpCall.Arguments); 1376Assert.Equal("dotnet/extensions", correlatedMcpCall.Arguments["repoName"]?.ToString());
OpenAIResponseClientTests.cs (18)
1743Assert.NotNull(call.Arguments); 1744Assert.Equal(2, call.Arguments.Count); 1745Assert.Equal("dotnet/extensions", ((JsonElement)call.Arguments["repoName"]!).GetString()); 1746Assert.Equal("What is the path to the README.md file for Microsoft.Extensions.AI.Abstractions?", ((JsonElement)call.Arguments["question"]!).GetString()); 2120Assert.NotNull(firstCall.Arguments); 2121Assert.Single(firstCall.Arguments); 2122Assert.Equal("dotnet/extensions", ((JsonElement)firstCall.Arguments["repoName"]!).GetString()); 2132Assert.NotNull(secondCall.Arguments); 2133Assert.Equal("dotnet/extensions", ((JsonElement)secondCall.Arguments["repoName"]!).GetString()); 2134Assert.Equal("What is the path to the README.md file for Microsoft.Extensions.AI.Abstractions?", ((JsonElement)secondCall.Arguments["question"]!).GetString()); 2531Assert.NotNull(firstCall.Arguments); 2532Assert.Single(firstCall.Arguments); 2533Assert.Equal("dotnet/extensions", ((JsonElement)firstCall.Arguments["repoName"]!).GetString()); 2543Assert.NotNull(secondCall.Arguments); 2544Assert.Equal("dotnet/extensions", ((JsonElement)secondCall.Arguments["repoName"]!).GetString()); 2545Assert.Equal("What is the path to the README.md file for Microsoft.Extensions.AI.Abstractions?", ((JsonElement)secondCall.Arguments["question"]!).GetString()); 2740Assert.NotNull(toolCall.Arguments); 2741Assert.Empty(toolCall.Arguments);
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\AssertExtensions.cs (2)
80McpServerToolCallContent mcp => (mcp.Name, mcp.Arguments), 87McpServerToolCallContent mcp => (mcp.Name, mcp.Arguments),
Microsoft.Extensions.AI.Tests (3)
ChatCompletion\FunctionInvokingChatClientApprovalsTests.cs (1)
2096Arguments = mstcc.Arguments,
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\AssertExtensions.cs (2)
80McpServerToolCallContent mcp => (mcp.Name, mcp.Arguments), 87McpServerToolCallContent mcp => (mcp.Name, mcp.Arguments),