9 references to InvalidOperationException
Microsoft.Extensions.AI (9)
ChatCompletion\AnonymousDelegatingChatClient.cs (1)
108Throw.InvalidOperationException("The wrapper completed successfully without producing a ChatResponse.");
ChatCompletion\ChatClientBuilder.cs (1)
55Throw.InvalidOperationException(
ChatCompletion\FunctionInvokingChatClient.cs (4)
332Throw.InvalidOperationException($"The inner {nameof(IChatClient)} returned a null {nameof(ChatResponse)}."); 502Throw.InvalidOperationException($"The inner {nameof(IChatClient)} streamed a null {nameof(ChatResponseUpdate)}."); 983Throw.InvalidOperationException($"{GetType().Name}.{nameof(CreateResponseMessages)} returned null or an empty collection of messages."); 1350Throw.InvalidOperationException(
Embeddings\CachingEmbeddingGenerator.cs (2)
54Throw.InvalidOperationException($"Expected exactly one embedding to be generated, but received {generated.Count}."); 59Throw.InvalidOperationException("Generator produced null embedding.");
Embeddings\EmbeddingGeneratorBuilder.cs (1)
60Throw.InvalidOperationException(