17 writes to Outputs
Microsoft.Extensions.AI.Abstractions (1)
Generated\361d1da7f942c932\JsonContext.McpServerToolResultContent.g.cs (1)
61Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.McpServerToolResultContent)obj).Outputs = value!,
Microsoft.Extensions.AI.Abstractions.Tests (3)
Contents\McpServerToolResultContentTests.cs (2)
42c.Outputs = outputs; 58Outputs = [new TextContent("result")]
Generated\361d1da7f942c932\TestJsonSerializerContext.McpServerToolResultContent.g.cs (1)
59Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.McpServerToolResultContent)obj).Outputs = value!,
Microsoft.Extensions.AI.Evaluation.Reporting (1)
Generated\361d1da7f942c932\JsonContext.McpServerToolResultContent.g.cs (1)
61Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.McpServerToolResultContent)obj).Outputs = value!,
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
Generated\361d1da7f942c932\JsonContext.McpServerToolResultContent.g.cs (1)
61Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.McpServerToolResultContent)obj).Outputs = value!,
Microsoft.Extensions.AI.OpenAI (2)
OpenAIRealtimeClientSession.cs (1)
1201Outputs = [resultContent],
OpenAIResponsesChatClient.cs (1)
1854Outputs = [mtci.Error is not null ?
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)
59Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.McpServerToolResultContent)obj).Outputs = value!,
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)
59Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.McpServerToolResultContent)obj).Outputs = value!,
25 references to Outputs
Microsoft.Extensions.AI (2)
Common\OtelMessageSerializer.cs (1)
195Output = mstrc.Outputs,
Realtime\OpenTelemetryRealtimeClientSession.cs (1)
615Output = mstrc.Outputs,
Microsoft.Extensions.AI.Abstractions (1)
Generated\361d1da7f942c932\JsonContext.McpServerToolResultContent.g.cs (1)
60Getter = static obj => ((global::Microsoft.Extensions.AI.McpServerToolResultContent)obj).Outputs,
Microsoft.Extensions.AI.Abstractions.Tests (9)
Contents\McpServerToolResultContentTests.cs (8)
20Assert.Null(c.Outputs); 40Assert.Null(c.Outputs); 43Assert.Same(outputs, c.Outputs); 74Assert.NotNull(deserializedContent.Outputs); 75Assert.Equal("result", Assert.IsType<TextContent>(Assert.Single(deserializedContent.Outputs)).Text); 103Assert.NotNull(mcpResult.Outputs); 104Assert.Single(mcpResult.Outputs); 105var textOutput = Assert.IsType<TextContent>(mcpResult.Outputs[0]);
Generated\361d1da7f942c932\TestJsonSerializerContext.McpServerToolResultContent.g.cs (1)
58Getter = static obj => ((global::Microsoft.Extensions.AI.McpServerToolResultContent)obj).Outputs,
Microsoft.Extensions.AI.Evaluation.Reporting (1)
Generated\361d1da7f942c932\JsonContext.McpServerToolResultContent.g.cs (1)
60Getter = static obj => ((global::Microsoft.Extensions.AI.McpServerToolResultContent)obj).Outputs,
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
Generated\361d1da7f942c932\JsonContext.McpServerToolResultContent.g.cs (1)
60Getter = static obj => ((global::Microsoft.Extensions.AI.McpServerToolResultContent)obj).Outputs,
Microsoft.Extensions.AI.OpenAI (2)
OpenAIResponsesChatClient.cs (2)
1607if (mstrc.Outputs?.OfType<ErrorContent>().FirstOrDefault() is ErrorContent errorContent) 1613mtci.ToolOutput = string.Concat(mstrc.Outputs?.OfType<TextContent>() ?? []);
Microsoft.Extensions.AI.OpenAI.Tests (7)
OpenAIResponseClientIntegrationTests.cs (1)
555var content = Assert.IsType<TextContent>(Assert.Single(toolResult.Outputs!));
OpenAIResponseClientTests.cs (6)
1644Assert.StartsWith("The `README.md` file for `Microsoft.Extensions.AI.Abstractions` is located at", Assert.IsType<TextContent>(Assert.Single(result.Outputs!)).Text); 2020Assert.StartsWith("Available pages for dotnet/extensions", Assert.IsType<TextContent>(Assert.Single(firstResult.Outputs!)).Text); 2032Assert.StartsWith("The `README.md` file for `Microsoft.Extensions.AI.Abstractions` is located at", Assert.IsType<TextContent>(Assert.Single(secondResult.Outputs!)).Text); 2431Assert.StartsWith("Available pages for dotnet/extensions", Assert.IsType<TextContent>(Assert.Single(firstResult.Outputs!)).Text); 2443Assert.StartsWith("The path to the `README.md` file", Assert.IsType<TextContent>(Assert.Single(secondResult.Outputs!)).Text); 2639var errorContent = Assert.IsType<ErrorContent>(Assert.Single(toolResult.Outputs!));
Microsoft.Extensions.AI.Stabilization.Tests (1)
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.McpServerToolResultContent.g.cs (1)
58Getter = static obj => ((global::Microsoft.Extensions.AI.McpServerToolResultContent)obj).Outputs,
Microsoft.Extensions.AI.Tests (1)
Generated\361d1da7f942c932\TestJsonSerializerContext.McpServerToolResultContent.g.cs (1)
58Getter = static obj => ((global::Microsoft.Extensions.AI.McpServerToolResultContent)obj).Outputs,