24 references to IfNull
Microsoft.Extensions.AI.OpenAI (24)
OpenAIAssistantClient.cs (4)
51
_assistantClient = Throw.
IfNull
(assistantClient);
52
_assistantId = Throw.
IfNull
(assistantId);
61
_ = Throw.
IfNull
(serviceType);
183
_ = Throw.
IfNull
(messages);
OpenAIChatClient.cs (6)
46
_ = Throw.
IfNull
(openAIClient);
67
_ = Throw.
IfNull
(chatClient);
87
set => _toolCallJsonSerializerOptions = Throw.
IfNull
(value);
93
_ = Throw.
IfNull
(serviceType);
108
_ = Throw.
IfNull
(messages);
123
_ = Throw.
IfNull
(messages);
OpenAIEmbeddingGenerator.cs (3)
47
_ = Throw.
IfNull
(openAIClient);
76
_ = Throw.
IfNull
(embeddingClient);
130
_ = Throw.
IfNull
(serviceType);
OpenAIModelMapper.ChatCompletion.cs (2)
31
_ = Throw.
IfNull
(response);
78
_ = Throw.
IfNull
(openAICompletion);
OpenAIRealtimeExtensions.cs (4)
29
_ = Throw.
IfNull
(aiFunction);
68
_ = Throw.
IfNull
(session);
69
_ = Throw.
IfNull
(update);
70
_ = Throw.
IfNull
(tools);
OpenAISerializationHelpers.cs (5)
32
_ = Throw.
IfNull
(stream);
55
_ = Throw.
IfNull
(stream);
56
_ = Throw.
IfNull
(response);
80
_ = Throw.
IfNull
(stream);
81
_ = Throw.
IfNull
(updates);