15 instantiations of 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 (3)
OpenAIResponseClientTests.cs (3)
4830var imageTool = new HostedImageGenerationTool 4932var imageTool = new HostedImageGenerationTool 5050var 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()]
10 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 (1)
Tools\HostedImageGenerationTool.cs (1)
17/// Initializes a new instance of the <see cref="HostedImageGenerationTool"/> class with the specified options.
Microsoft.Extensions.AI.OpenAI (2)
OpenAIResponsesChatClient.cs (2)
525case HostedImageGenerationTool imageGenerationTool: 601internal static ImageGenerationTool ToImageResponseTool(HostedImageGenerationTool imageGenerationTool)
Microsoft.Extensions.AI.OpenAI.Tests (3)
OpenAIResponseClientTests.cs (3)
4830var imageTool = new HostedImageGenerationTool 4932var imageTool = new HostedImageGenerationTool 5050var imageTool = new HostedImageGenerationTool