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