18 writes to Outputs
Microsoft.Extensions.AI.Abstractions (2)
ChatCompletion\ChatResponseExtensions.cs (1)
417Outputs = output,
Generated\361d1da7f942c932\JsonContext.CodeInterpreterToolResultContent.g.cs (1)
61Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.CodeInterpreterToolResultContent)obj).Outputs = value!,
Microsoft.Extensions.AI.Abstractions.Tests (4)
Contents\CodeInterpreterToolResultContentTests.cs (3)
31c.Outputs = output; 50Outputs = 72Outputs =
Generated\361d1da7f942c932\TestJsonSerializerContext.CodeInterpreterToolResultContent.g.cs (1)
59Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.CodeInterpreterToolResultContent)obj).Outputs = value!,
Microsoft.Extensions.AI.Evaluation.Reporting (1)
Generated\361d1da7f942c932\JsonContext.CodeInterpreterToolResultContent.g.cs (1)
61Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.CodeInterpreterToolResultContent)obj).Outputs = value!,
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
Generated\361d1da7f942c932\JsonContext.CodeInterpreterToolResultContent.g.cs (1)
61Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.CodeInterpreterToolResultContent)obj).Outputs = value!,
Microsoft.Extensions.AI.OpenAI (3)
OpenAIAssistantsChatClient.cs (2)
232(hcitrc.Outputs ??= []).Add(new HostedFileContent(output.ImageFileId) { MediaType = "image/*" }); 237(hcitrc.Outputs ??= []).Add(new TextContent(logs));
OpenAIResponsesChatClient.cs (1)
1905Outputs = outputContents,
Microsoft.Extensions.AI.Stabilization.Tests (4)
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.CodeInterpreterToolResultContent.g.cs (1)
59Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.CodeInterpreterToolResultContent)obj).Outputs = value!,
parent\Microsoft.Extensions.AI.Abstractions.Tests\Contents\CodeInterpreterToolResultContentTests.cs (3)
31c.Outputs = output; 50Outputs = 72Outputs =
Microsoft.Extensions.AI.Tests (3)
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")] }] };
Generated\361d1da7f942c932\TestJsonSerializerContext.CodeInterpreterToolResultContent.g.cs (1)
59Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.CodeInterpreterToolResultContent)obj).Outputs = value!,
52 references to Outputs
Microsoft.Extensions.AI (1)
Common\OtelMessageSerializer.cs (1)
151Output = citrc.Outputs,
Microsoft.Extensions.AI.Abstractions (4)
ChatCompletion\ChatResponseExtensions.cs (3)
395if (firstContent.Outputs is not null) 397CoalesceContent(firstContent.Outputs); 407(output ??= []).AddRange(((CodeInterpreterToolResultContent)contents[i]).Outputs ?? []);
Generated\361d1da7f942c932\JsonContext.CodeInterpreterToolResultContent.g.cs (1)
60Getter = static obj => ((global::Microsoft.Extensions.AI.CodeInterpreterToolResultContent)obj).Outputs,
Microsoft.Extensions.AI.Abstractions.Tests (19)
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]);
Generated\361d1da7f942c932\TestJsonSerializerContext.CodeInterpreterToolResultContent.g.cs (1)
58Getter = static obj => ((global::Microsoft.Extensions.AI.CodeInterpreterToolResultContent)obj).Outputs,
Microsoft.Extensions.AI.Evaluation.Reporting (1)
Generated\361d1da7f942c932\JsonContext.CodeInterpreterToolResultContent.g.cs (1)
60Getter = static obj => ((global::Microsoft.Extensions.AI.CodeInterpreterToolResultContent)obj).Outputs,
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
Generated\361d1da7f942c932\JsonContext.CodeInterpreterToolResultContent.g.cs (1)
60Getter = static obj => ((global::Microsoft.Extensions.AI.CodeInterpreterToolResultContent)obj).Outputs,
Microsoft.Extensions.AI.OpenAI.Tests (6)
OpenAIAssistantChatClientIntegrationTests.cs (3)
92if (toolResultContent.Outputs is not null) 94Assert.NotEmpty(toolResultContent.Outputs); 95if (toolResultContent.Outputs.OfType<TextContent>().FirstOrDefault() is { } resultOutput)
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 (19)
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.CodeInterpreterToolResultContent.g.cs (1)
58Getter = static obj => ((global::Microsoft.Extensions.AI.CodeInterpreterToolResultContent)obj).Outputs,
parent\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]);
Microsoft.Extensions.AI.Tests (1)
Generated\361d1da7f942c932\TestJsonSerializerContext.CodeInterpreterToolResultContent.g.cs (1)
58Getter = static obj => ((global::Microsoft.Extensions.AI.CodeInterpreterToolResultContent)obj).Outputs,