5 writes to Output
Microsoft.Extensions.AI.Abstractions.Tests (2)
Contents\McpServerToolResultContentTests.cs (2)
42
c.
Output
= output;
58
Output
= new List<AIContent> { new TextContent("result") }
Microsoft.Extensions.AI.OpenAI (1)
OpenAIResponsesChatClient.cs (1)
1390
Output
= [mtci.Error is not null ?
Microsoft.Extensions.AI.Tests (2)
ChatCompletion\OpenTelemetryChatClientTests.cs (2)
619
new McpServerToolResultContent("mcp-call-1") {
Output
= [new TextContent("Tool result")] },
635
yield return new() { Contents = [new McpServerToolResultContent("mcp-call-1") {
Output
= [new TextContent("Tool result")] }] };
18 references to Output
Microsoft.Extensions.AI (1)
ChatCompletion\OpenTelemetryChatClient.cs (1)
433
Output = mstrc.
Output
,
Microsoft.Extensions.AI.Abstractions.Tests (4)
Contents\McpServerToolResultContentTests.cs (4)
20
Assert.Null(c.
Output
);
40
Assert.Null(c.
Output
);
43
Assert.Same(output, c.
Output
);
66
Assert.NotNull(deserializedContent.
Output
);
Microsoft.Extensions.AI.OpenAI (2)
OpenAIResponsesChatClient.cs (2)
1189
if (mstrc.
Output
?.OfType<ErrorContent>().FirstOrDefault() is ErrorContent errorContent)
1195
mtci.ToolOutput = string.Concat(mstrc.
Output
?.OfType<TextContent>() ?? []);
Microsoft.Extensions.AI.OpenAI.Tests (11)
OpenAIResponseClientIntegrationTests.cs (1)
429
var content = Assert.IsType<TextContent>(Assert.Single(toolResult.
Output
!));
OpenAIResponseClientTests.cs (10)
1555
Assert.NotNull(result.
Output
);
1556
Assert.StartsWith("The `README.md` file for `Microsoft.Extensions.AI.Abstractions` is located at", Assert.IsType<TextContent>(Assert.Single(result.
Output
)).Text);
1809
Assert.NotNull(firstResult.
Output
);
1810
Assert.StartsWith("Available pages for dotnet/extensions", Assert.IsType<TextContent>(Assert.Single(firstResult.
Output
)).Text);
1822
Assert.NotNull(secondResult.
Output
);
1823
Assert.StartsWith("The `README.md` file for `Microsoft.Extensions.AI.Abstractions` is located at", Assert.IsType<TextContent>(Assert.Single(secondResult.
Output
)).Text);
2222
Assert.NotNull(firstResult.
Output
);
2223
Assert.StartsWith("Available pages for dotnet/extensions", Assert.IsType<TextContent>(Assert.Single(firstResult.
Output
)).Text);
2235
Assert.NotNull(secondResult.
Output
);
2236
Assert.StartsWith("The path to the `README.md` file", Assert.IsType<TextContent>(Assert.Single(secondResult.
Output
)).Text);