24 instantiations of ImageGenerationToolCallContent
Microsoft.Extensions.AI (1)
ChatCompletion\ImageGeneratingChatClient.cs (1)
336newContents.Add(new ImageGenerationToolCallContent(functionCall.CallId));
Microsoft.Extensions.AI.Abstractions (1)
Generated\361d1da7f942c932\JsonContext.ImageGenerationToolCallContent.g.cs (1)
34ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ImageGenerationToolCallContent((string)args[0]),
Microsoft.Extensions.AI.Abstractions.Tests (9)
Contents\AIContentTests.cs (1)
83new ImageGenerationToolCallContent("img123"),
Contents\ImageGenerationToolCallContentTests.cs (4)
14ImageGenerationToolCallContent c = new("call123"); 23ImageGenerationToolCallContent c = new("img123"); 41ImageGenerationToolCallContent content = new("img123"); 53AIContent content = new ImageGenerationToolCallContent("img456");
Contents\ToolApprovalRequestContentTests.cs (1)
27new ImageGenerationToolCallContent("IG1"),
Contents\ToolApprovalResponseContentTests.cs (1)
27new ImageGenerationToolCallContent("IG1"),
Contents\ToolCallContentTests.cs (1)
59new ImageGenerationToolCallContent("call4"),
Generated\361d1da7f942c932\TestJsonSerializerContext.ImageGenerationToolCallContent.g.cs (1)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ImageGenerationToolCallContent((string)args[0]),
Microsoft.Extensions.AI.Evaluation.Reporting (1)
Generated\361d1da7f942c932\JsonContext.ImageGenerationToolCallContent.g.cs (1)
34ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ImageGenerationToolCallContent((string)args[0]),
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
Generated\361d1da7f942c932\JsonContext.ImageGenerationToolCallContent.g.cs (1)
34ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ImageGenerationToolCallContent((string)args[0]),
Microsoft.Extensions.AI.OpenAI (2)
OpenAIResponsesChatClient.cs (2)
488yield return CreateUpdate(new ImageGenerationToolCallContent(imageGenInProgress.ItemId) 1970contents.Add(new ImageGenerationToolCallContent(outputItem.Id));
Microsoft.Extensions.AI.OpenAI.Tests (1)
OpenAIResponseClientTests.cs (1)
1757var imageGenApproval = new ToolApprovalResponseContent("req-ig-1", false, new ImageGenerationToolCallContent("ig-call-1"));
Microsoft.Extensions.AI.Stabilization.Tests (5)
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.ImageGenerationToolCallContent.g.cs (1)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ImageGenerationToolCallContent((string)args[0]),
parent\Microsoft.Extensions.AI.Abstractions.Tests\Contents\ImageGenerationToolCallContentTests.cs (4)
14ImageGenerationToolCallContent c = new("call123"); 23ImageGenerationToolCallContent c = new("img123"); 41ImageGenerationToolCallContent content = new("img123"); 53AIContent content = new ImageGenerationToolCallContent("img456");
Microsoft.Extensions.AI.Tests (3)
ChatCompletion\OpenTelemetryChatClientTests.cs (2)
663new ImageGenerationToolCallContent("img-123"), 679yield return new() { Contents = [new ImageGenerationToolCallContent("img-123")] };
Generated\361d1da7f942c932\TestJsonSerializerContext.ImageGenerationToolCallContent.g.cs (1)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ImageGenerationToolCallContent((string)args[0]),
108 references to ImageGenerationToolCallContent
Microsoft.Extensions.AI (1)
Common\OtelMessageSerializer.cs (1)
156case ImageGenerationToolCallContent igtcc:
Microsoft.Extensions.AI.Abstractions (14)
Contents\AIContent.cs (1)
29[JsonDerivedType(typeof(ImageGenerationToolCallContent), typeDiscriminator: "imageGenerationToolCall")]
Contents\ImageGenerationToolCallContent.cs (1)
12/// Initializes a new instance of the <see cref="ImageGenerationToolCallContent"/> class.
Contents\ToolCallContent.cs (1)
15[JsonDerivedType(typeof(ImageGenerationToolCallContent), "imageGenerationToolCall")]
Generated\361d1da7f942c932\JsonContext.ImageGenerationToolCallContent.g.cs (10)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent>? _ImageGenerationToolCallContent; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent> ImageGenerationToolCallContent 24get => _ImageGenerationToolCallContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ImageGenerationToolCallContent)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent> Create_ImageGenerationToolCallContent(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent> jsonTypeInfo)) 31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent> 37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ImageGenerationToolCallContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string)}, modifiers: null), 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent>(options, objectInfo);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.GetJsonTypeInfo.g.cs (1)
236if (type == typeof(global::Microsoft.Extensions.AI.ImageGenerationToolCallContent))
Microsoft.Extensions.AI.Abstractions.Tests (20)
Contents\ImageGenerationToolCallContentTests.cs (9)
14ImageGenerationToolCallContent c = new("call123"); 23ImageGenerationToolCallContent c = new("img123"); 41ImageGenerationToolCallContent content = new("img123"); 44var deserializedSut = JsonSerializer.Deserialize<ImageGenerationToolCallContent>(json, AIJsonUtilities.DefaultOptions); 62Assert.IsType<ImageGenerationToolCallContent>(deserialized); 63Assert.Equal("img456", ((ImageGenerationToolCallContent)deserialized).CallId); 82var imgCall = Assert.IsType<ImageGenerationToolCallContent>(result);
Generated\361d1da7f942c932\TestJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
238if (type == typeof(global::Microsoft.Extensions.AI.ImageGenerationToolCallContent))
Generated\361d1da7f942c932\TestJsonSerializerContext.ImageGenerationToolCallContent.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent>? _ImageGenerationToolCallContent; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent> ImageGenerationToolCallContent 22get => _ImageGenerationToolCallContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ImageGenerationToolCallContent)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent> Create_ImageGenerationToolCallContent(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent> 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ImageGenerationToolCallContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string)}, modifiers: null), 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent>(options, objectInfo);
Microsoft.Extensions.AI.Evaluation.Reporting (11)
Generated\361d1da7f942c932\JsonContext.ImageGenerationToolCallContent.g.cs (10)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent>? _ImageGenerationToolCallContent; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent> ImageGenerationToolCallContent 24get => _ImageGenerationToolCallContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ImageGenerationToolCallContent)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent> Create_ImageGenerationToolCallContent(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent> jsonTypeInfo)) 31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent> 37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ImageGenerationToolCallContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string)}, modifiers: null), 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent>(options, objectInfo);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.GetJsonTypeInfo.g.cs (1)
176if (type == typeof(global::Microsoft.Extensions.AI.ImageGenerationToolCallContent))
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (11)
Generated\361d1da7f942c932\JsonContext.ImageGenerationToolCallContent.g.cs (10)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent>? _ImageGenerationToolCallContent; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent> ImageGenerationToolCallContent 24get => _ImageGenerationToolCallContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ImageGenerationToolCallContent)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent> Create_ImageGenerationToolCallContent(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent> jsonTypeInfo)) 31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent> 37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ImageGenerationToolCallContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string)}, modifiers: null), 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent>(options, objectInfo);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.GetJsonTypeInfo.g.cs (1)
172if (type == typeof(global::Microsoft.Extensions.AI.ImageGenerationToolCallContent))
Microsoft.Extensions.AI.OpenAI.Tests (10)
OpenAIResponseClientIntegrationTests.cs (2)
165var igCall = m.Contents.OfType<ImageGenerationToolCallContent>().FirstOrDefault();
OpenAIResponseClientTests.cs (8)
6381var toolCall = contents[0] as ImageGenerationToolCallContent; 6486u.Contents != null && u.Contents.Any(c => c is ImageGenerationToolCallContent)); 6488var toolCall = toolCallUpdate.Contents.OfType<ImageGenerationToolCallContent>().First(); 6645u.Contents != null && u.Contents.Any(c => c is ImageGenerationToolCallContent)); 6647var toolCall = toolCallUpdate.Contents.OfType<ImageGenerationToolCallContent>().First();
Microsoft.Extensions.AI.Stabilization.Tests (20)
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.GetJsonTypeInfo.g.cs (1)
82if (type == typeof(global::Microsoft.Extensions.AI.ImageGenerationToolCallContent))
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.ImageGenerationToolCallContent.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent>? _ImageGenerationToolCallContent; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent> ImageGenerationToolCallContent 22get => _ImageGenerationToolCallContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ImageGenerationToolCallContent)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent> Create_ImageGenerationToolCallContent(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent> 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ImageGenerationToolCallContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string)}, modifiers: null), 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent>(options, objectInfo);
parent\Microsoft.Extensions.AI.Abstractions.Tests\Contents\ImageGenerationToolCallContentTests.cs (9)
14ImageGenerationToolCallContent c = new("call123"); 23ImageGenerationToolCallContent c = new("img123"); 41ImageGenerationToolCallContent content = new("img123"); 44var deserializedSut = JsonSerializer.Deserialize<ImageGenerationToolCallContent>(json, AIJsonUtilities.DefaultOptions); 62Assert.IsType<ImageGenerationToolCallContent>(deserialized); 63Assert.Equal("img456", ((ImageGenerationToolCallContent)deserialized).CallId); 82var imgCall = Assert.IsType<ImageGenerationToolCallContent>(result);
Microsoft.Extensions.AI.Tests (21)
ChatCompletion\ImageGeneratingChatClientTests.cs (10)
339var imageToolCallContent = Assert.IsType<ImageGenerationToolCallContent>(message.Contents[0]); 383var imageToolCallContent = Assert.IsType<ImageGenerationToolCallContent>(update.Contents[0]); 436Assert.IsType<ImageGenerationToolCallContent>(contents[0]); 445Assert.IsType<ImageGenerationToolCallContent>(contents[1]); 452Assert.IsType<ImageGenerationToolCallContent>(contents[1]); 513Assert.IsType<ImageGenerationToolCallContent>(contents[0]); 522Assert.IsType<ImageGenerationToolCallContent>(contents[1]); 529Assert.IsType<ImageGenerationToolCallContent>(contents[1]);
Generated\361d1da7f942c932\TestJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
158if (type == typeof(global::Microsoft.Extensions.AI.ImageGenerationToolCallContent))
Generated\361d1da7f942c932\TestJsonSerializerContext.ImageGenerationToolCallContent.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent>? _ImageGenerationToolCallContent; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent> ImageGenerationToolCallContent 22get => _ImageGenerationToolCallContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ImageGenerationToolCallContent)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent> Create_ImageGenerationToolCallContent(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent> 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ImageGenerationToolCallContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string)}, modifiers: null), 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.ImageGenerationToolCallContent>(options, objectInfo);