10 writes to ImageId
Microsoft.Extensions.AI (1)
ChatCompletion\ImageGeneratingChatClient.cs (1)
351ImageId = functionResult.CallId,
Microsoft.Extensions.AI.Abstractions.Tests (7)
ChatCompletion\ChatResponseUpdateExtensionsTests.cs (7)
843new() { Contents = [new ImageGenerationToolResultContent { ImageId = "img1", Outputs = [image1] }] }, 846new() { Contents = [new ImageGenerationToolResultContent { ImageId = "img2", Outputs = [image2] }] }, 849new() { Contents = [new ImageGenerationToolResultContent { ImageId = "img1", Outputs = [image3] }] }, 852new() { Contents = [new ImageGenerationToolResultContent { ImageId = "img2", Outputs = [image4] }] }, 897new() { Contents = [new ImageGenerationToolResultContent { ImageId = null, Outputs = [image1] }] }, 900new() { Contents = [new ImageGenerationToolResultContent { ImageId = "", Outputs = [image2] }] }, 903new() { Contents = [new ImageGenerationToolResultContent { ImageId = null, Outputs = [image3] }] },
Microsoft.Extensions.AI.OpenAI (2)
OpenAIResponsesChatClient.cs (2)
1284ImageId = outputItem.Id, 1300ImageId = update.ItemId,
6 references to ImageId
Microsoft.Extensions.AI.Abstractions (3)
ChatCompletion\ChatResponseExtensions.cs (3)
199if (contents[i] is ImageGenerationToolResultContent imageResult && !string.IsNullOrEmpty(imageResult.ImageId)) 207if (imageResultIndexById.TryGetValue(imageResult.ImageId!, out int existingIndex)) 216imageResultIndexById[imageResult.ImageId!] = i;
Microsoft.Extensions.AI.Abstractions.Tests (2)
ChatCompletion\ChatResponseUpdateExtensionsTests.cs (2)
873var firstImageResult = imageResults.First(ir => ir.ImageId == "img1"); 879var secondImageResult = imageResults.First(ir => ir.ImageId == "img2");
Microsoft.Extensions.AI.OpenAI.Tests (1)
OpenAIResponseClientTests.cs (1)
4859Assert.Equal("img_call_abc123", toolResult.ImageId);