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)
212Arguments = JsonSerializer.Deserialize(mtcari.ToolArguments.ToMemory().Span, OpenAIJsonContext.Default.IReadOnlyDictionaryStringObject)!, 430Arguments = JsonSerializer.Deserialize(mtcari.ToolArguments.ToMemory().Span, OpenAIJsonContext.Default.IReadOnlyDictionaryStringObject)!, 1303Arguments = JsonSerializer.Deserialize(mtci.ToolArguments.ToMemory().Span, OpenAIJsonContext.Default.IReadOnlyDictionaryStringObject)!,
Microsoft.Extensions.AI.Tests (3)
ChatCompletion\OpenTelemetryChatClientTests.cs (3)
617new McpServerToolCallContent("mcp-call-1", "myTool", "myServer") { Arguments = new Dictionary<string, object?> { ["param1"] = "value1" } }, 633yield return new() { Contents = [new McpServerToolCallContent("mcp-call-1", "myTool", "myServer") { Arguments = new Dictionary<string, object?> { ["param1"] = "value1" } }] }; 781Arguments = new Dictionary<string, object?> { ["action"] = "delete" }
23 references to Arguments
Microsoft.Extensions.AI (2)
ChatCompletion\OpenTelemetryChatClient.cs (2)
367Arguments = mstcc.Arguments, 391Arguments = 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)
1096BinaryData.FromBytes(JsonSerializer.SerializeToUtf8Bytes(mcpApprovalRequestContent.ToolCall.Arguments!, OpenAIJsonContext.Default.IReadOnlyDictionaryStringObject))); 1111BinaryData.FromBytes(JsonSerializer.SerializeToUtf8Bytes(associatedCall.Arguments!, OpenAIJsonContext.Default.IReadOnlyDictionaryStringObject)));
Microsoft.Extensions.AI.OpenAI.Tests (16)
OpenAIResponseClientTests.cs (16)
1437Assert.NotNull(call.Arguments); 1438Assert.Equal(2, call.Arguments.Count); 1439Assert.Equal("dotnet/extensions", ((JsonElement)call.Arguments["repoName"]!).GetString()); 1440Assert.Equal("What is the path to the README.md file for Microsoft.Extensions.AI.Abstractions?", ((JsonElement)call.Arguments["question"]!).GetString()); 1692Assert.NotNull(firstCall.Arguments); 1693Assert.Single(firstCall.Arguments); 1694Assert.Equal("dotnet/extensions", ((JsonElement)firstCall.Arguments["repoName"]!).GetString()); 1705Assert.NotNull(secondCall.Arguments); 1706Assert.Equal("dotnet/extensions", ((JsonElement)secondCall.Arguments["repoName"]!).GetString()); 1707Assert.Equal("What is the path to the README.md file for Microsoft.Extensions.AI.Abstractions?", ((JsonElement)secondCall.Arguments["question"]!).GetString()); 2105Assert.NotNull(firstCall.Arguments); 2106Assert.Single(firstCall.Arguments); 2107Assert.Equal("dotnet/extensions", ((JsonElement)firstCall.Arguments["repoName"]!).GetString()); 2118Assert.NotNull(secondCall.Arguments); 2119Assert.Equal("dotnet/extensions", ((JsonElement)secondCall.Arguments["repoName"]!).GetString()); 2120Assert.Equal("What is the path to the README.md file for Microsoft.Extensions.AI.Abstractions?", ((JsonElement)secondCall.Arguments["question"]!).GetString());