7 references to GenerateAsync
Microsoft.Extensions.AI.Abstractions (5)
Embeddings\EmbeddingGeneratorExtensions.cs (5)
102/// This operation is equivalent to using <see cref="GenerateAsync"/> and returning the 131/// This operation is equivalent to using <see cref="GenerateAsync"/> and returning the 140var embedding = await GenerateAsync(generator, value, options, cancellationToken).ConfigureAwait(false); 163/// This method is obsolete. Use <see cref="GenerateAsync{TInput, TEmbedding}"/> instead. 174return await GenerateAsync(generator, value, options, cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.AI.Abstractions.Tests (1)
Embeddings\EmbeddingGeneratorExtensionsTests.cs (1)
81await Assert.ThrowsAsync<ArgumentNullException>("generator", () => ((TestEmbeddingGenerator)null!).GenerateAsync("hello"));
Microsoft.Extensions.AI.Integration.Tests (1)
EmbeddingGeneratorIntegrationTests.cs (1)
119_ = await embeddingGenerator.GenerateAsync("Hello, world!");