10 writes to Outputs
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\ChatResponseExtensions.cs (1)
417Outputs = output,
Microsoft.Extensions.AI.Abstractions.Tests (3)
Contents\CodeInterpreterToolResultContentTests.cs (3)
31c.Outputs = output; 50Outputs = 72Outputs =
Microsoft.Extensions.AI.OpenAI (1)
OpenAIResponsesChatClient.cs (1)
1908Outputs = outputContents,
Microsoft.Extensions.AI.Stabilization.Tests (3)
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\Contents\CodeInterpreterToolResultContentTests.cs (3)
31c.Outputs = output; 50Outputs = 72Outputs =
Microsoft.Extensions.AI.Tests (2)
ChatCompletion\OpenTelemetryChatClientTests.cs (2)
662new CodeInterpreterToolResultContent("ci-call-1") { Outputs = [new TextContent("hello")] }, 678yield return new() { Contents = [new CodeInterpreterToolResultContent("ci-call-1") { Outputs = [new TextContent("hello")] }] };
43 references to Outputs
Microsoft.Extensions.AI (1)
Common\OtelMessageSerializer.cs (1)
151Output = citrc.Outputs,
Microsoft.Extensions.AI.Abstractions (3)
ChatCompletion\ChatResponseExtensions.cs (3)
395if (firstContent.Outputs is not null) 397CoalesceContent(firstContent.Outputs); 407(output ??= []).AddRange(((CodeInterpreterToolResultContent)contents[i]).Outputs ?? []);
Microsoft.Extensions.AI.Abstractions.Tests (18)
Contents\CodeInterpreterToolResultContentTests.cs (18)
19Assert.Null(c.Outputs); 29Assert.Null(c.Outputs); 32Assert.Same(output, c.Outputs); 59Assert.NotNull(c.Outputs); 60Assert.Equal(4, c.Outputs.Count); 61Assert.IsType<TextContent>(c.Outputs[0]); 62Assert.IsType<HostedFileContent>(c.Outputs[1]); 63Assert.IsType<DataContent>(c.Outputs[2]); 64Assert.IsType<ErrorContent>(c.Outputs[3]); 84Assert.NotNull(deserializedSut.Outputs); 85Assert.Equal(2, deserializedSut.Outputs.Count); 86Assert.IsType<TextContent>(deserializedSut.Outputs[0]); 87Assert.Equal("Hello, World!", ((TextContent)deserializedSut.Outputs[0]).Text); 88Assert.IsType<HostedFileContent>(deserializedSut.Outputs[1]); 89Assert.Equal("result.txt", ((HostedFileContent)deserializedSut.Outputs[1]).FileId); 116Assert.NotNull(ciResult.Outputs); 117Assert.Single(ciResult.Outputs); 118var textOutput = Assert.IsType<TextContent>(ciResult.Outputs[0]);
Microsoft.Extensions.AI.OpenAI.Tests (3)
OpenAIResponseClientIntegrationTests.cs (3)
67if (toolResultContent.Outputs is not null) 69Assert.NotEmpty(toolResultContent.Outputs); 70if (toolResultContent.Outputs.OfType<TextContent>().FirstOrDefault() is { } resultOutput)
Microsoft.Extensions.AI.Stabilization.Tests (18)
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\Contents\CodeInterpreterToolResultContentTests.cs (18)
19Assert.Null(c.Outputs); 29Assert.Null(c.Outputs); 32Assert.Same(output, c.Outputs); 59Assert.NotNull(c.Outputs); 60Assert.Equal(4, c.Outputs.Count); 61Assert.IsType<TextContent>(c.Outputs[0]); 62Assert.IsType<HostedFileContent>(c.Outputs[1]); 63Assert.IsType<DataContent>(c.Outputs[2]); 64Assert.IsType<ErrorContent>(c.Outputs[3]); 84Assert.NotNull(deserializedSut.Outputs); 85Assert.Equal(2, deserializedSut.Outputs.Count); 86Assert.IsType<TextContent>(deserializedSut.Outputs[0]); 87Assert.Equal("Hello, World!", ((TextContent)deserializedSut.Outputs[0]).Text); 88Assert.IsType<HostedFileContent>(deserializedSut.Outputs[1]); 89Assert.Equal("result.txt", ((HostedFileContent)deserializedSut.Outputs[1]).FileId); 116Assert.NotNull(ciResult.Outputs); 117Assert.Single(ciResult.Outputs); 118var textOutput = Assert.IsType<TextContent>(ciResult.Outputs[0]);