30 instantiations of 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]),
142 references to ImageGenerationToolResultContent
Microsoft.Extensions.AI (2)
ChatCompletion\ImageGeneratingChatClient.cs (1)
197else if (content is ImageGenerationToolResultContent toolResultContent)
Common\OtelMessageSerializer.cs (1)
165case ImageGenerationToolResultContent igtrc:
Microsoft.Extensions.AI.Abstractions (19)
ChatCompletion\ChatResponseExtensions.cs (1)
199if (contents[i] is ImageGenerationToolResultContent imageResult)
Contents\AIContent.cs (1)
30[JsonDerivedType(typeof(ImageGenerationToolResultContent), typeDiscriminator: "imageGenerationToolResult")]
Contents\ImageGenerationToolResultContent.cs (1)
18/// Initializes a new instance of the <see cref="ImageGenerationToolResultContent"/> class.
Contents\ToolResultContent.cs (1)
15[JsonDerivedType(typeof(ImageGenerationToolResultContent), "imageGenerationToolResult")]
Generated\361d1da7f942c932\JsonContext.ImageGenerationToolResultContent.g.cs (14)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent>? _ImageGenerationToolResultContent; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent> ImageGenerationToolResultContent 24get => _ImageGenerationToolResultContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ImageGenerationToolResultContent)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent> Create_ImageGenerationToolResultContent(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent> jsonTypeInfo)) 31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent> 37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ImageGenerationToolResultContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string)}, modifiers: null), 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.Extensions.AI.ImageGenerationToolResultContent), 60Getter = static obj => ((global::Microsoft.Extensions.AI.ImageGenerationToolResultContent)obj).Outputs, 61Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ImageGenerationToolResultContent)obj).Outputs = value!, 68AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ImageGenerationToolResultContent).GetProperty("Outputs", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IList<global::Microsoft.Extensions.AI.AIContent>), global::System.Array.Empty<global::System.Type>(), null),
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.GetJsonTypeInfo.g.cs (1)
240if (type == typeof(global::Microsoft.Extensions.AI.ImageGenerationToolResultContent))
Microsoft.Extensions.AI.Abstractions.Tests (30)
ChatCompletion\ChatResponseUpdateExtensionsTests.cs (4)
960var imageResults = message.Contents.OfType<ImageGenerationToolResultContent>().ToArray(); 964var firstImageResult = imageResults.First(ir => ir.CallId == "img1"); 970var secondImageResult = imageResults.First(ir => ir.CallId == "img2"); 1001var imageResults = message.Contents.OfType<ImageGenerationToolResultContent>().ToArray();
Contents\ImageGenerationToolResultContentTests.cs (11)
16ImageGenerationToolResultContent c = new("call123"); 26ImageGenerationToolResultContent c = new("img123"); 49ImageGenerationToolResultContent c = new("img456") 69ImageGenerationToolResultContent content = new("img123") 79var deserializedSut = JsonSerializer.Deserialize<ImageGenerationToolResultContent>(json, AIJsonUtilities.DefaultOptions); 110Assert.IsType<ImageGenerationToolResultContent>(deserialized); 112var imageResult = (ImageGenerationToolResultContent)deserialized; 143var imgResult = Assert.IsType<ImageGenerationToolResultContent>(result);
Generated\361d1da7f942c932\TestJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
242if (type == typeof(global::Microsoft.Extensions.AI.ImageGenerationToolResultContent))
Generated\361d1da7f942c932\TestJsonSerializerContext.ImageGenerationToolResultContent.g.cs (14)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent>? _ImageGenerationToolResultContent; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent> ImageGenerationToolResultContent 22get => _ImageGenerationToolResultContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ImageGenerationToolResultContent)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent> Create_ImageGenerationToolResultContent(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent> 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ImageGenerationToolResultContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string)}, modifiers: null), 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent>(options, objectInfo); 56DeclaringType = typeof(global::Microsoft.Extensions.AI.ImageGenerationToolResultContent), 58Getter = static obj => ((global::Microsoft.Extensions.AI.ImageGenerationToolResultContent)obj).Outputs, 59Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ImageGenerationToolResultContent)obj).Outputs = value!, 66AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ImageGenerationToolResultContent).GetProperty("Outputs", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IList<global::Microsoft.Extensions.AI.AIContent>), global::System.Array.Empty<global::System.Type>(), null),
Microsoft.Extensions.AI.Evaluation.Reporting (15)
Generated\361d1da7f942c932\JsonContext.ImageGenerationToolResultContent.g.cs (14)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent>? _ImageGenerationToolResultContent; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent> ImageGenerationToolResultContent 24get => _ImageGenerationToolResultContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ImageGenerationToolResultContent)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent> Create_ImageGenerationToolResultContent(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent> jsonTypeInfo)) 31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent> 37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ImageGenerationToolResultContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string)}, modifiers: null), 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.Extensions.AI.ImageGenerationToolResultContent), 60Getter = static obj => ((global::Microsoft.Extensions.AI.ImageGenerationToolResultContent)obj).Outputs, 61Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ImageGenerationToolResultContent)obj).Outputs = value!, 68AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ImageGenerationToolResultContent).GetProperty("Outputs", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IList<global::Microsoft.Extensions.AI.AIContent>), global::System.Array.Empty<global::System.Type>(), null),
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.GetJsonTypeInfo.g.cs (1)
180if (type == typeof(global::Microsoft.Extensions.AI.ImageGenerationToolResultContent))
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (15)
Generated\361d1da7f942c932\JsonContext.ImageGenerationToolResultContent.g.cs (14)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent>? _ImageGenerationToolResultContent; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent> ImageGenerationToolResultContent 24get => _ImageGenerationToolResultContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ImageGenerationToolResultContent)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent> Create_ImageGenerationToolResultContent(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent> jsonTypeInfo)) 31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent> 37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ImageGenerationToolResultContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string)}, modifiers: null), 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.Extensions.AI.ImageGenerationToolResultContent), 60Getter = static obj => ((global::Microsoft.Extensions.AI.ImageGenerationToolResultContent)obj).Outputs, 61Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ImageGenerationToolResultContent)obj).Outputs = value!, 68AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ImageGenerationToolResultContent).GetProperty("Outputs", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IList<global::Microsoft.Extensions.AI.AIContent>), global::System.Array.Empty<global::System.Type>(), null),
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.GetJsonTypeInfo.g.cs (1)
176if (type == typeof(global::Microsoft.Extensions.AI.ImageGenerationToolResultContent))
Microsoft.Extensions.AI.Integration.Tests (11)
ImageGeneratingChatClientIntegrationTests.cs (11)
87foreach (var toolResult in contents.OfType<ImageGenerationToolResultContent>()) 140.OfType<ImageGenerationToolResultContent>(); 142var imageResult = Assert.Single(imageResults); 214var firstToolResultContent = Assert.Single(firstResponse.Messages.SelectMany(m => m.Contents).OfType<ImageGenerationToolResultContent>()); 220Assert.Single(secondResponse.Messages.SelectMany(m => m.Contents).OfType<ImageGenerationToolResultContent>().SelectMany(t => t.Outputs!.OfType<DataContent>())); 269var secondToolResultContent = Assert.Single(secondResponse.Messages.SelectMany(m => m.Contents).OfType<ImageGenerationToolResultContent>()); 314var firstToolResultContent = Assert.Single(firstResponse.Messages.SelectMany(m => m.Contents).OfType<ImageGenerationToolResultContent>());
Microsoft.Extensions.AI.OpenAI (1)
OpenAIResponsesChatClient.cs (1)
1979private static ImageGenerationToolResultContent GetImageGenerationResult(StreamingResponseImageGenerationCallPartialImageUpdate update, CreateResponseOptions? options)
Microsoft.Extensions.AI.OpenAI.Tests (8)
OpenAIResponseClientIntegrationTests.cs (2)
169var igResult = m.Contents.OfType<ImageGenerationToolResultContent>().FirstOrDefault();
OpenAIResponseClientTests.cs (6)
6386var toolResult = contents[1] as ImageGenerationToolResultContent; 6493u.Contents != null && u.Contents.Any(c => c is ImageGenerationToolResultContent result && 6599u.Contents != null && u.Contents.Any(c => c is ImageGenerationToolResultContent result && 6608u.Contents.OfType<ImageGenerationToolResultContent>().Any(result => 6613static bool HasPartialImageWithIndex(ImageGenerationToolResultContent result, int index)
Microsoft.Extensions.AI.Stabilization.Tests (26)
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.GetJsonTypeInfo.g.cs (1)
86if (type == typeof(global::Microsoft.Extensions.AI.ImageGenerationToolResultContent))
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.ImageGenerationToolResultContent.g.cs (14)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent>? _ImageGenerationToolResultContent; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent> ImageGenerationToolResultContent 22get => _ImageGenerationToolResultContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ImageGenerationToolResultContent)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent> Create_ImageGenerationToolResultContent(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent> 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ImageGenerationToolResultContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string)}, modifiers: null), 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent>(options, objectInfo); 56DeclaringType = typeof(global::Microsoft.Extensions.AI.ImageGenerationToolResultContent), 58Getter = static obj => ((global::Microsoft.Extensions.AI.ImageGenerationToolResultContent)obj).Outputs, 59Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ImageGenerationToolResultContent)obj).Outputs = value!, 66AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ImageGenerationToolResultContent).GetProperty("Outputs", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IList<global::Microsoft.Extensions.AI.AIContent>), global::System.Array.Empty<global::System.Type>(), null),
parent\Microsoft.Extensions.AI.Abstractions.Tests\Contents\ImageGenerationToolResultContentTests.cs (11)
16ImageGenerationToolResultContent c = new("call123"); 26ImageGenerationToolResultContent c = new("img123"); 49ImageGenerationToolResultContent c = new("img456") 69ImageGenerationToolResultContent content = new("img123") 79var deserializedSut = JsonSerializer.Deserialize<ImageGenerationToolResultContent>(json, AIJsonUtilities.DefaultOptions); 110Assert.IsType<ImageGenerationToolResultContent>(deserialized); 112var imageResult = (ImageGenerationToolResultContent)deserialized; 143var imgResult = Assert.IsType<ImageGenerationToolResultContent>(result);
Microsoft.Extensions.AI.Tests (15)
Generated\361d1da7f942c932\TestJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
162if (type == typeof(global::Microsoft.Extensions.AI.ImageGenerationToolResultContent))
Generated\361d1da7f942c932\TestJsonSerializerContext.ImageGenerationToolResultContent.g.cs (14)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent>? _ImageGenerationToolResultContent; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent> ImageGenerationToolResultContent 22get => _ImageGenerationToolResultContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ImageGenerationToolResultContent)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent> Create_ImageGenerationToolResultContent(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent> 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ImageGenerationToolResultContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string)}, modifiers: null), 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.ImageGenerationToolResultContent>(options, objectInfo); 56DeclaringType = typeof(global::Microsoft.Extensions.AI.ImageGenerationToolResultContent), 58Getter = static obj => ((global::Microsoft.Extensions.AI.ImageGenerationToolResultContent)obj).Outputs, 59Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ImageGenerationToolResultContent)obj).Outputs = value!, 66AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ImageGenerationToolResultContent).GetProperty("Outputs", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IList<global::Microsoft.Extensions.AI.AIContent>), global::System.Array.Empty<global::System.Type>(), null),