5 implementations of GenerateAsync
Microsoft.Extensions.AI.Abstractions (1)
Image\DelegatingImageGenerator.cs (1)
43public virtual Task<ImageGenerationResponse> GenerateAsync(
Microsoft.Extensions.AI.Abstractions.Tests (1)
TestImageGenerator.cs (1)
28public Task<ImageGenerationResponse> GenerateAsync(ImageGenerationRequest request, ImageGenerationOptions? options = null, CancellationToken cancellationToken = default)
Microsoft.Extensions.AI.Integration.Tests (1)
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\TestImageGenerator.cs (1)
28public Task<ImageGenerationResponse> GenerateAsync(ImageGenerationRequest request, ImageGenerationOptions? options = null, CancellationToken cancellationToken = default)
Microsoft.Extensions.AI.OpenAI (1)
OpenAIImageGenerator.cs (1)
63public async Task<ImageGenerationResponse> GenerateAsync(ImageGenerationRequest request, ImageGenerationOptions? options = null, CancellationToken cancellationToken = default)
Microsoft.Extensions.AI.Tests (1)
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\TestImageGenerator.cs (1)
28public Task<ImageGenerationResponse> GenerateAsync(ImageGenerationRequest request, ImageGenerationOptions? options = null, CancellationToken cancellationToken = default)
8 references to GenerateAsync
Microsoft.Extensions.AI.Abstractions (6)
Image\DelegatingImageGenerator.cs (1)
46return InnerGenerator.GenerateAsync(request, options, cancellationToken);
Image\ImageGenerationOptions.cs (1)
43/// When <see cref="IImageGenerator.GenerateAsync" /> is invoked with an <see cref="ImageGenerationOptions" />,
Image\ImageGeneratorExtensions.cs (4)
116return generator.GenerateAsync(new ImageGenerationRequest(prompt), options, cancellationToken); 140return generator.GenerateAsync(new ImageGenerationRequest(prompt, originalImages), options, cancellationToken); 164return generator.GenerateAsync(new ImageGenerationRequest(prompt, [originalImage]), options, cancellationToken); 196return generator.GenerateAsync(new ImageGenerationRequest(prompt, [dataContent]), options, cancellationToken);
Microsoft.Extensions.AI.Tests (2)
Image\LoggingImageGeneratorTests.cs (2)
69await generator.GenerateAsync( 118await generator.GenerateAsync(