5 references to InvalidOperationException
Microsoft.Extensions.AI.Abstractions (5)
Embeddings\EmbeddingGeneratorExtensions.cs (4)
147
Throw.
InvalidOperationException
("Embedding generator returned a null collection of embeddings.");
152
Throw.
InvalidOperationException
($"Expected the number of embeddings ({embeddings.Count}) to match the number of inputs (1).");
158
Throw.
InvalidOperationException
("Embedding generator generated a null embedding.");
199
Throw.
InvalidOperationException
($"Expected the number of embeddings ({embeddings.Count}) to match the number of inputs ({inputsCount}).");
Functions\AIFunctionFactory.cs (1)
562
Throw.
InvalidOperationException
("Unable to create an instance of the target type.");