30 references to ImageGenerationToolResultContent
Microsoft.Extensions.AI (1)
ChatCompletion\ImageGeneratingChatClient.cs (1)
348newContents.Add(new ImageGenerationToolResultContent(functionResult.CallId)
Microsoft.Extensions.AI.Abstractions (1)
Generated\361d1da7f942c932\JsonContext.ImageGenerationToolResultContent.g.cs (1)
34ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ImageGenerationToolResultContent((string)args[0]),
Microsoft.Extensions.AI.Abstractions.Tests (15)
ChatCompletion\ChatResponseUpdateExtensionsTests.cs (7)
934new() { Contents = [new ImageGenerationToolResultContent("img1") { Outputs = [image1] }] }, 937new() { Contents = [new ImageGenerationToolResultContent("img2") { Outputs = [image2] }] }, 940new() { Contents = [new ImageGenerationToolResultContent("img1") { Outputs = [image3] }] }, 943new() { Contents = [new ImageGenerationToolResultContent("img2") { Outputs = [image4] }] }, 988new() { Contents = [new ImageGenerationToolResultContent("id-1") { Outputs = [image1] }] }, 991new() { Contents = [new ImageGenerationToolResultContent("id-2") { Outputs = [image2] }] }, 994new() { Contents = [new ImageGenerationToolResultContent("id-3") { Outputs = [image3] }] },
Contents\AIContentTests.cs (1)
84new ImageGenerationToolResultContent("img456") { Outputs = [new DataContent(new byte[] { 4, 5, 6 }, "image/png")] },
Contents\ImageGenerationToolResultContentTests.cs (5)
16ImageGenerationToolResultContent c = new("call123"); 26ImageGenerationToolResultContent c = new("img123"); 49ImageGenerationToolResultContent c = new("img456") 69ImageGenerationToolResultContent content = new("img123") 94AIContent content = new ImageGenerationToolResultContent("img789")
Contents\ToolResultContentTests.cs (1)
58new ImageGenerationToolResultContent("call4"),
Generated\361d1da7f942c932\TestJsonSerializerContext.ImageGenerationToolResultContent.g.cs (1)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ImageGenerationToolResultContent((string)args[0]),
Microsoft.Extensions.AI.Evaluation.Reporting (1)
Generated\361d1da7f942c932\JsonContext.ImageGenerationToolResultContent.g.cs (1)
34ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ImageGenerationToolResultContent((string)args[0]),
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
Generated\361d1da7f942c932\JsonContext.ImageGenerationToolResultContent.g.cs (1)
34ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ImageGenerationToolResultContent((string)args[0]),
Microsoft.Extensions.AI.OpenAI (2)
OpenAIResponsesChatClient.cs (2)
1972contents.Add(new ImageGenerationToolResultContent(outputItem.Id) 1984return new ImageGenerationToolResultContent(update.ItemId)
Microsoft.Extensions.AI.Stabilization.Tests (6)
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.ImageGenerationToolResultContent.g.cs (1)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ImageGenerationToolResultContent((string)args[0]),
parent\Microsoft.Extensions.AI.Abstractions.Tests\Contents\ImageGenerationToolResultContentTests.cs (5)
16ImageGenerationToolResultContent c = new("call123"); 26ImageGenerationToolResultContent c = new("img123"); 49ImageGenerationToolResultContent c = new("img456") 69ImageGenerationToolResultContent content = new("img123") 94AIContent content = new ImageGenerationToolResultContent("img789")
Microsoft.Extensions.AI.Tests (3)
ChatCompletion\OpenTelemetryChatClientTests.cs (2)
664new ImageGenerationToolResultContent("img-123") { Outputs = [new UriContent(new Uri("https://example.com/image.png"), "image/png")] }, 684new ImageGenerationToolResultContent("img-123")
Generated\361d1da7f942c932\TestJsonSerializerContext.ImageGenerationToolResultContent.g.cs (1)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ImageGenerationToolResultContent((string)args[0]),