38 references to IfNull
Microsoft.Extensions.AI.OpenAI (38)
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);
248
OpenAIChatClient.FromOpenAIChatCompletion(Throw.
IfNull
(chatCompletion), options);
261
OpenAIChatClient.FromOpenAIStreamingChatCompletionAsync(Throw.
IfNull
(chatCompletionUpdates), options, cancellationToken);
MicrosoftExtensionsAIRealtimeExtensions.cs (1)
18
OpenAIRealtimeConversationClient.ToOpenAIConversationFunctionTool(Throw.
IfNull
(function));
MicrosoftExtensionsAIResponsesExtensions.cs (8)
22
OpenAIResponsesChatClient.ToResponseTool(Throw.
IfNull
(function));
39
OpenAIResponsesChatClient.ToOpenAIResponseItems(Throw.
IfNull
(messages), options);
46
OpenAIResponsesChatClient.ToChatMessages(Throw.
IfNull
(items));
54
OpenAIResponsesChatClient.FromOpenAIResponse(Throw.
IfNull
(response), options);
67
OpenAIResponsesChatClient.FromOpenAIStreamingResponseUpdatesAsync(Throw.
IfNull
(responseUpdates), options, cancellationToken);
75
_ = Throw.
IfNull
(response);
108
_ = Throw.
IfNull
(tools);
134
_ = Throw.
IfNull
(tool);
OpenAIAssistantsChatClient.cs (3)
50
_client = Throw.
IfNull
(assistantClient);
59
: this(assistantClient, Throw.
IfNull
(assistant).Id, defaultThreadId)
82
_ = Throw.
IfNull
(messages);
OpenAIChatClient.cs (5)
63
_chatClient = Throw.
IfNull
(chatClient);
71
_ = Throw.
IfNull
(serviceType);
85
_ = Throw.
IfNull
(messages);
103
_ = Throw.
IfNull
(messages);
464
_ = 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)
64
_ = Throw.
IfNull
(responseClient);
79
_ = Throw.
IfNull
(serviceType);
93
_ = Throw.
IfNull
(messages);
227
_ = Throw.
IfNull
(messages);
OpenAISpeechToTextClient.cs (4)
39
_audioClient = Throw.
IfNull
(audioClient);
47
_ = Throw.
IfNull
(serviceType);
61
_ = Throw.
IfNull
(audioSpeechStream);
114
_ = Throw.
IfNull
(audioSpeechStream);