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)
311var imageGenTool = new HostedImageGenerationTool 326var imageGenTool = new HostedImageGenerationTool 350var imageGenTool = new HostedImageGenerationTool(new Dictionary<string, object?> 386var imageGenTool = new HostedImageGenerationTool(new Dictionary<string, object?>
OpenAIResponseClientTests.cs (3)
5612var imageTool = new HostedImageGenerationTool 5713var imageTool = new HostedImageGenerationTool 5830var 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)
17/// <summary>A delegating chat client that enables image generation capabilities by converting <see cref="HostedImageGenerationTool"/> instances to function tools.</summary> 24/// This client automatically detects <see cref="HostedImageGenerationTool"/> instances in the <see cref="ChatOptions.Tools"/> collection 259if (tool is HostedImageGenerationTool imageGenerationTool)
ChatCompletion\ImageGeneratingChatClientBuilderExtensions.cs (1)
27/// This method enables the chat client to handle <see cref="HostedImageGenerationTool"/> instances by converting them
Microsoft.Extensions.AI.Abstractions (2)
Tools\HostedImageGenerationTool.cs (2)
22/// Initializes a new instance of the <see cref="HostedImageGenerationTool"/> class with the specified options. 28/// <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)
602case HostedImageGenerationTool imageGenerationTool:
Microsoft.Extensions.AI.OpenAI.Tests (7)
OpenAIConversionTests.cs (4)
311var imageGenTool = new HostedImageGenerationTool 326var imageGenTool = new HostedImageGenerationTool 350var imageGenTool = new HostedImageGenerationTool(new Dictionary<string, object?> 386var imageGenTool = new HostedImageGenerationTool(new Dictionary<string, object?>
OpenAIResponseClientTests.cs (3)
5612var imageTool = new HostedImageGenerationTool 5713var imageTool = new HostedImageGenerationTool 5830var imageTool = new HostedImageGenerationTool