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