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