18 references to ImageGenerationToolResultContent
Microsoft.Extensions.AI (1)
ChatCompletion\ImageGeneratingChatClient.cs (1)
350newContents.Add(new ImageGenerationToolResultContent
Microsoft.Extensions.AI.Abstractions.Tests (13)
ChatCompletion\ChatResponseUpdateExtensionsTests.cs (7)
934new() { Contents = [new ImageGenerationToolResultContent { ImageId = "img1", Outputs = [image1] }] }, 937new() { Contents = [new ImageGenerationToolResultContent { ImageId = "img2", Outputs = [image2] }] }, 940new() { Contents = [new ImageGenerationToolResultContent { ImageId = "img1", Outputs = [image3] }] }, 943new() { Contents = [new ImageGenerationToolResultContent { ImageId = "img2", Outputs = [image4] }] }, 988new() { Contents = [new ImageGenerationToolResultContent { ImageId = null, Outputs = [image1] }] }, 991new() { Contents = [new ImageGenerationToolResultContent { ImageId = "", Outputs = [image2] }] }, 994new() { Contents = [new ImageGenerationToolResultContent { ImageId = null, Outputs = [image3] }] },
Contents\AIContentTests.cs (1)
80new ImageGenerationToolResultContent { ImageId = "img456", Outputs = [new DataContent(new byte[] { 4, 5, 6 }, "image/png")] }
Contents\ImageGenerationToolResultContentTests.cs (5)
15ImageGenerationToolResultContent c = new(); 25ImageGenerationToolResultContent c = new(); 50ImageGenerationToolResultContent c = new() 71ImageGenerationToolResultContent content = new() 97AIContent content = new ImageGenerationToolResultContent
Microsoft.Extensions.AI.OpenAI (2)
OpenAIResponsesChatClient.cs (2)
1430contents.Add(new ImageGenerationToolResultContent 1443return new ImageGenerationToolResultContent
Microsoft.Extensions.AI.Tests (2)
ChatCompletion\OpenTelemetryChatClientTests.cs (2)
617new ImageGenerationToolResultContent { ImageId = "img-123", Outputs = [new UriContent(new Uri("https://example.com/image.png"), "image/png")] }, 633yield return new() { Contents = [new ImageGenerationToolResultContent { ImageId = "img-123", Outputs = [new UriContent(new Uri("https://example.com/image.png"), "image/png")] }] };