40 references to IfNull
Microsoft.Extensions.AI.OpenAI (40)
MicrosoftExtensionsAIAssistantsExtensions.cs (1)
18
OpenAIAssistantsChatClient.ToOpenAIAssistantsFunctionToolDefinition(Throw.
IfNull
(function));
MicrosoftExtensionsAIChatExtensions.cs (7)
27
OpenAIChatClient.ToOpenAIChatTool(Throw.
IfNull
(function));
43
OpenAIChatClient.ToOpenAIChatMessages(Throw.
IfNull
(messages), options);
51
_ = Throw.
IfNull
(response);
133
_ = Throw.
IfNull
(responseUpdates);
174
_ = Throw.
IfNull
(messages);
253
OpenAIChatClient.FromOpenAIChatCompletion(Throw.
IfNull
(chatCompletion), options);
266
OpenAIChatClient.FromOpenAIStreamingChatCompletionAsync(Throw.
IfNull
(chatCompletionUpdates), options, cancellationToken);
MicrosoftExtensionsAIRealtimeExtensions.cs (1)
18
OpenAIRealtimeConversationClient.ToOpenAIConversationFunctionTool(Throw.
IfNull
(function));
MicrosoftExtensionsAIResponsesExtensions.cs (9)
22
OpenAIResponsesChatClient.ToResponseTool(Throw.
IfNull
(function));
33
OpenAIResponsesChatClient.ToResponseTool(Throw.
IfNull
(tool));
50
OpenAIResponsesChatClient.ToOpenAIResponseItems(Throw.
IfNull
(messages), options);
57
OpenAIResponsesChatClient.ToChatMessages(Throw.
IfNull
(items));
65
OpenAIResponsesChatClient.FromOpenAIResponse(Throw.
IfNull
(response), options, conversationId: null);
78
OpenAIResponsesChatClient.FromOpenAIStreamingResponseUpdatesAsync(Throw.
IfNull
(responseUpdates), options, conversationId: null, cancellationToken: cancellationToken);
86
_ = Throw.
IfNull
(response);
119
_ = Throw.
IfNull
(tools);
145
_ = Throw.
IfNull
(tool);
OpenAIAssistantsChatClient.cs (3)
44
_client = Throw.
IfNull
(assistantClient);
53
: this(assistantClient, Throw.
IfNull
(assistant).Id, defaultThreadId)
76
_ = Throw.
IfNull
(messages);
OpenAIChatClient.cs (5)
61
_chatClient = Throw.
IfNull
(chatClient);
69
_ = Throw.
IfNull
(serviceType);
83
_ = Throw.
IfNull
(messages);
101
_ = Throw.
IfNull
(messages);
463
_ = Throw.
IfNull
(openAICompletion);
OpenAIEmbeddingGenerator.cs (2)
50
_embeddingClient = Throw.
IfNull
(embeddingClient);
95
_ = Throw.
IfNull
(serviceType);
OpenAIImageGenerator.cs (3)
47
_imageClient = Throw.
IfNull
(imageClient);
55
_ = Throw.
IfNull
(request);
58
_ = Throw.
IfNull
(prompt);
OpenAIResponsesChatClient.cs (5)
74
_ = Throw.
IfNull
(responseClient);
84
_ = Throw.
IfNull
(serviceType);
98
_ = Throw.
IfNull
(messages);
253
_ = Throw.
IfNull
(messages);
1394
_ = Throw.
IfNull
(serviceType);
OpenAISpeechToTextClient.cs (4)
38
_audioClient = Throw.
IfNull
(audioClient);
46
_ = Throw.
IfNull
(serviceType);
60
_ = Throw.
IfNull
(audioSpeechStream);
113
_ = Throw.
IfNull
(audioSpeechStream);