36 references to IfNull
Microsoft.Extensions.AI.OpenAI (36)
MicrosoftExtensionsAIAssistantsExtensions.cs (1)
18
OpenAIAssistantsChatClient.ToOpenAIAssistantsFunctionToolDefinition(Throw.
IfNull
(function));
MicrosoftExtensionsAIChatExtensions.cs (7)
27
OpenAIChatClient.ToOpenAIChatTool(Throw.
IfNull
(function));
34
OpenAIChatClient.ToOpenAIChatMessages(Throw.
IfNull
(messages), options);
42
_ = Throw.
IfNull
(response);
124
_ = Throw.
IfNull
(responseUpdates);
165
_ = Throw.
IfNull
(messages);
239
OpenAIChatClient.FromOpenAIChatCompletion(Throw.
IfNull
(chatCompletion), options);
252
OpenAIChatClient.FromOpenAIStreamingChatCompletionAsync(Throw.
IfNull
(chatCompletionUpdates), options, cancellationToken);
MicrosoftExtensionsAIRealtimeExtensions.cs (1)
18
OpenAIRealtimeConversationClient.ToOpenAIConversationFunctionTool(Throw.
IfNull
(function));
MicrosoftExtensionsAIResponsesExtensions.cs (6)
22
OpenAIResponsesChatClient.ToResponseTool(Throw.
IfNull
(function));
30
OpenAIResponsesChatClient.ToOpenAIResponseItems(Throw.
IfNull
(messages), options);
37
OpenAIResponsesChatClient.ToChatMessages(Throw.
IfNull
(items));
45
OpenAIResponsesChatClient.FromOpenAIResponse(Throw.
IfNull
(response), options);
58
OpenAIResponsesChatClient.FromOpenAIStreamingResponseUpdatesAsync(Throw.
IfNull
(responseUpdates), options, cancellationToken);
66
_ = Throw.
IfNull
(response);
OpenAIAssistantsChatClient.cs (3)
50
_client = Throw.
IfNull
(assistantClient);
59
: this(assistantClient, Throw.
IfNull
(assistant).Id, defaultThreadId)
82
_ = Throw.
IfNull
(messages);
OpenAIChatClient.cs (5)
39
_chatClient = Throw.
IfNull
(chatClient);
47
_ = Throw.
IfNull
(serviceType);
61
_ = Throw.
IfNull
(messages);
76
_ = Throw.
IfNull
(messages);
435
_ = Throw.
IfNull
(openAICompletion);
OpenAIEmbeddingGenerator.cs (2)
36
_embeddingClient = Throw.
IfNull
(embeddingClient);
78
_ = Throw.
IfNull
(serviceType);
OpenAIImageGenerator.cs (3)
48
_imageClient = Throw.
IfNull
(imageClient);
56
_ = Throw.
IfNull
(request);
59
_ = Throw.
IfNull
(prompt);
OpenAIResponsesChatClient.cs (4)
45
_ = Throw.
IfNull
(responseClient);
60
_ = Throw.
IfNull
(serviceType);
74
_ = Throw.
IfNull
(messages);
201
_ = Throw.
IfNull
(messages);
OpenAISpeechToTextClient.cs (4)
39
_audioClient = Throw.
IfNull
(audioClient);
47
_ = Throw.
IfNull
(serviceType);
61
_ = Throw.
IfNull
(audioSpeechStream);
114
_ = Throw.
IfNull
(audioSpeechStream);