12 references to ImageGenerationToolResultContent
Microsoft.Extensions.AI (1)
ChatCompletion\ImageGeneratingChatClient.cs (1)
350
newContents.Add(new
ImageGenerationToolResultContent
Microsoft.Extensions.AI.Abstractions.Tests (7)
ChatCompletion\ChatResponseUpdateExtensionsTests.cs (7)
934
new() { Contents = [new
ImageGenerationToolResultContent
{ ImageId = "img1", Outputs = [image1] }] },
937
new() { Contents = [new
ImageGenerationToolResultContent
{ ImageId = "img2", Outputs = [image2] }] },
940
new() { Contents = [new
ImageGenerationToolResultContent
{ ImageId = "img1", Outputs = [image3] }] },
943
new() { Contents = [new
ImageGenerationToolResultContent
{ ImageId = "img2", Outputs = [image4] }] },
988
new() { Contents = [new
ImageGenerationToolResultContent
{ ImageId = null, Outputs = [image1] }] },
991
new() { Contents = [new
ImageGenerationToolResultContent
{ ImageId = "", Outputs = [image2] }] },
994
new() { Contents = [new
ImageGenerationToolResultContent
{ ImageId = null, Outputs = [image3] }] },
Microsoft.Extensions.AI.OpenAI (2)
OpenAIResponsesChatClient.cs (2)
1365
contents.Add(new
ImageGenerationToolResultContent
1378
return new
ImageGenerationToolResultContent
Microsoft.Extensions.AI.Tests (2)
ChatCompletion\OpenTelemetryChatClientTests.cs (2)
616
new
ImageGenerationToolResultContent
{ ImageId = "img-123", Outputs = [new UriContent(new Uri("https://example.com/image.png"), "image/png")] },
632
yield return new() { Contents = [new
ImageGenerationToolResultContent
{ ImageId = "img-123", Outputs = [new UriContent(new Uri("https://example.com/image.png"), "image/png")] }] };