7 references to InvalidOperationException
Microsoft.Extensions.AI (7)
ChatCompletion\AnonymousDelegatingChatClient.cs (1)
107Throw.InvalidOperationException("The wrapper completed successfully without producing a ChatResponse.");
ChatCompletion\ChatClientBuilder.cs (1)
55Throw.InvalidOperationException(
ChatCompletion\FunctionInvokingChatClient.cs (3)
208Throw.InvalidOperationException($"The inner {nameof(IChatClient)} returned a null {nameof(ChatResponse)}."); 294Throw.InvalidOperationException($"The inner {nameof(IChatClient)} streamed a null {nameof(ChatResponseUpdate)}."); 569Throw.InvalidOperationException($"{GetType().Name}.{nameof(CreateResponseMessages)} returned null or an empty collection of messages.");
Embeddings\CachingEmbeddingGenerator.cs (1)
54Throw.InvalidOperationException($"Expected exactly one embedding to be generated, but received {generated.Count}.");
Embeddings\EmbeddingGeneratorBuilder.cs (1)
60Throw.InvalidOperationException(