22 references to McpServerToolResultContent
Microsoft.Extensions.AI.Abstractions (1)
Generated\361d1da7f942c932\JsonContext.McpServerToolResultContent.g.cs (1)
34ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.McpServerToolResultContent((string)args[0]),
Microsoft.Extensions.AI.Abstractions.Tests (8)
Contents\AIContentTests.cs (1)
80new McpServerToolResultContent("call123"),
Contents\McpServerToolResultContentTests.cs (5)
16McpServerToolResultContent c = new("callId"); 26McpServerToolResultContent c = new("callId"); 49Assert.Throws<ArgumentException>("callId", () => new McpServerToolResultContent(string.Empty)); 50Assert.Throws<ArgumentNullException>("callId", () => new McpServerToolResultContent(null!)); 56var content = new McpServerToolResultContent("call123")
Contents\ToolResultContentTests.cs (1)
56new McpServerToolResultContent("call2"),
Generated\361d1da7f942c932\TestJsonSerializerContext.McpServerToolResultContent.g.cs (1)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.McpServerToolResultContent((string)args[0]),
Microsoft.Extensions.AI.Evaluation.Reporting (1)
Generated\361d1da7f942c932\JsonContext.McpServerToolResultContent.g.cs (1)
34ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.McpServerToolResultContent((string)args[0]),
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
Generated\361d1da7f942c932\JsonContext.McpServerToolResultContent.g.cs (1)
34ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.McpServerToolResultContent((string)args[0]),
Microsoft.Extensions.AI.OpenAI (2)
OpenAIRealtimeClientSession.cs (1)
1199contents.Add(new McpServerToolResultContent(callId)
OpenAIResponsesChatClient.cs (1)
1851contents.Add(new McpServerToolResultContent(mtci.Id)
Microsoft.Extensions.AI.OpenAI.Tests (1)
OpenAIConversionTests.cs (1)
1490var mcpToolResult = new McpServerToolResultContent("call_123") { Outputs = isError ? [new ErrorContent("error")] : [new TextContent("sunny")] };
Microsoft.Extensions.AI.Stabilization.Tests (1)
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.McpServerToolResultContent.g.cs (1)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.McpServerToolResultContent((string)args[0]),
Microsoft.Extensions.AI.Tests (7)
ChatCompletion\FunctionInvokingChatClientApprovalsTests.cs (4)
1816new McpServerToolResultContent("callId2") { Outputs = [new TextContent("Result 2")] }, 1832new McpServerToolResultContent("callId2") { Outputs = [new TextContent("Result 2")] }, 1903[new McpServerToolResultContent("callId2") { Outputs = [new TextContent("Result 2")] }] : 1922[new McpServerToolResultContent("callId2") { Outputs = [new TextContent("Result 2")] }] :
ChatCompletion\OpenTelemetryChatClientTests.cs (2)
666new McpServerToolResultContent("mcp-call-1") { Outputs = [new TextContent("Tool result")] }, 691yield return new() { Contents = [new McpServerToolResultContent("mcp-call-1") { Outputs = [new TextContent("Tool result")] }] };
Generated\361d1da7f942c932\TestJsonSerializerContext.McpServerToolResultContent.g.cs (1)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.McpServerToolResultContent((string)args[0]),