23 instantiations of HostedImageGenerationTool
Microsoft.Extensions.AI.Abstractions.Tests (4)
Tools\HostedImageGenerationToolTests.cs (4)
14var tool = new HostedImageGenerationTool(); 26var tool = new HostedImageGenerationTool(props); 35var tool = new HostedImageGenerationTool(null); 44var tool = new HostedImageGenerationTool
Microsoft.Extensions.AI.Integration.Tests (7)
ImageGeneratingChatClientIntegrationTests.cs (7)
124Tools = [new HostedImageGenerationTool()] 162Tools = [new HostedImageGenerationTool()] 191Tools = [new HostedImageGenerationTool()] 241Tools = [new HostedImageGenerationTool()] 286Tools = [new HostedImageGenerationTool()] 337Tools = [new HostedImageGenerationTool { Options = imageGenerationOptions }] 386new ChatOptions { Tools = [new HostedImageGenerationTool()] },
Microsoft.Extensions.AI.OpenAI.Tests (7)
OpenAIConversionTests.cs (4)
266var imageGenTool = new HostedImageGenerationTool 281var imageGenTool = new HostedImageGenerationTool 305var imageGenTool = new HostedImageGenerationTool(new Dictionary<string, object?> 341var imageGenTool = new HostedImageGenerationTool(new Dictionary<string, object?>
OpenAIResponseClientTests.cs (3)
5174var imageTool = new HostedImageGenerationTool 5275var imageTool = new HostedImageGenerationTool 5392var imageTool = new HostedImageGenerationTool
Microsoft.Extensions.AI.Tests (5)
ChatCompletion\ImageGeneratingChatClientTests.cs (5)
85Tools = [new HostedImageGenerationTool()] 133Tools = [dummyFunction, new HostedImageGenerationTool()] 237Tools = [new HostedImageGenerationTool()] 327Tools = [new HostedImageGenerationTool()] 368Tools = [new HostedImageGenerationTool()]
18 references to HostedImageGenerationTool
Microsoft.Extensions.AI (4)
ChatCompletion\ImageGeneratingChatClient.cs (3)
16/// <summary>A delegating chat client that enables image generation capabilities by converting <see cref="HostedImageGenerationTool"/> instances to function tools.</summary> 23/// This client automatically detects <see cref="HostedImageGenerationTool"/> instances in the <see cref="ChatOptions.Tools"/> collection 258if (tool is HostedImageGenerationTool imageGenerationTool)
ChatCompletion\ImageGeneratingChatClientBuilderExtensions.cs (1)
26/// This method enables the chat client to handle <see cref="HostedImageGenerationTool"/> instances by converting them
Microsoft.Extensions.AI.Abstractions (2)
Tools\HostedImageGenerationTool.cs (2)
21/// Initializes a new instance of the <see cref="HostedImageGenerationTool"/> class with the specified options. 27/// <summary>Initializes a new instance of the <see cref="HostedImageGenerationTool"/> class.</summary>
Microsoft.Extensions.AI.Abstractions.Tests (4)
Tools\HostedImageGenerationToolTests.cs (4)
14var tool = new HostedImageGenerationTool(); 26var tool = new HostedImageGenerationTool(props); 35var tool = new HostedImageGenerationTool(null); 44var tool = new HostedImageGenerationTool
Microsoft.Extensions.AI.OpenAI (1)
OpenAIResponsesChatClient.cs (1)
565case HostedImageGenerationTool imageGenerationTool:
Microsoft.Extensions.AI.OpenAI.Tests (7)
OpenAIConversionTests.cs (4)
266var imageGenTool = new HostedImageGenerationTool 281var imageGenTool = new HostedImageGenerationTool 305var imageGenTool = new HostedImageGenerationTool(new Dictionary<string, object?> 341var imageGenTool = new HostedImageGenerationTool(new Dictionary<string, object?>
OpenAIResponseClientTests.cs (3)
5174var imageTool = new HostedImageGenerationTool 5275var imageTool = new HostedImageGenerationTool 5392var imageTool = new HostedImageGenerationTool