3 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)
1230
Output
= [mtci.Error is not null ?
17 references to 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)
1072
if (mstrc.
Output
?.OfType<ErrorContent>().FirstOrDefault() is ErrorContent errorContent)
1078
mtci.ToolOutput = string.Concat(mstrc.
Output
?.OfType<TextContent>() ?? []);
Microsoft.Extensions.AI.OpenAI.Tests (11)
OpenAIResponseClientIntegrationTests.cs (1)
424
var content = Assert.IsType<TextContent>(Assert.Single(toolResult.
Output
!));
OpenAIResponseClientTests.cs (10)
1219
Assert.NotNull(result.
Output
);
1220
Assert.StartsWith("The `README.md` file for `Microsoft.Extensions.AI.Abstractions` is located at", Assert.IsType<TextContent>(Assert.Single(result.
Output
)).Text);
1474
Assert.NotNull(firstResult.
Output
);
1475
Assert.StartsWith("Available pages for dotnet/extensions", Assert.IsType<TextContent>(Assert.Single(firstResult.
Output
)).Text);
1487
Assert.NotNull(secondResult.
Output
);
1488
Assert.StartsWith("The `README.md` file for `Microsoft.Extensions.AI.Abstractions` is located at", Assert.IsType<TextContent>(Assert.Single(secondResult.
Output
)).Text);
1888
Assert.NotNull(firstResult.
Output
);
1889
Assert.StartsWith("Available pages for dotnet/extensions", Assert.IsType<TextContent>(Assert.Single(firstResult.
Output
)).Text);
1901
Assert.NotNull(secondResult.
Output
);
1902
Assert.StartsWith("The path to the `README.md` file", Assert.IsType<TextContent>(Assert.Single(secondResult.
Output
)).Text);