11 references to InvalidOperationException
Microsoft.Extensions.AI (11)
ChatCompletion\AnonymousDelegatingChatClient.cs (1)
108
Throw.
InvalidOperationException
("The wrapper completed successfully without producing a ChatResponse.");
ChatCompletion\ChatClientBuilder.cs (1)
55
Throw.
InvalidOperationException
(
ChatCompletion\FunctionInvokingChatClient.cs (4)
346
Throw.
InvalidOperationException
($"The inner {nameof(IChatClient)} returned a null {nameof(ChatResponse)}.");
546
Throw.
InvalidOperationException
($"The inner {nameof(IChatClient)} streamed a null {nameof(ChatResponseUpdate)}.");
1260
Throw.
InvalidOperationException
($"{GetType().Name}.{nameof(CreateResponseMessages)} returned null or an empty collection of messages.");
1505
Throw.
InvalidOperationException
(
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
(
Files\HostedFileClientBuilder.cs (1)
58
Throw.
InvalidOperationException
(
Realtime\RealtimeClientBuilder.cs (1)
56
Throw.
InvalidOperationException
(