40 references to IfNull
Microsoft.Extensions.AI.OpenAI (40)
MicrosoftExtensionsAIAssistantsExtensions.cs (1)
21
OpenAIAssistantsChatClient.ToOpenAIAssistantsFunctionToolDefinition(Throw.
IfNull
(function));
MicrosoftExtensionsAIChatExtensions.cs (7)
29
OpenAIChatClient.ToOpenAIChatTool(Throw.
IfNull
(function));
46
OpenAIChatClient.ToOpenAIChatMessages(Throw.
IfNull
(messages), options);
55
_ = Throw.
IfNull
(response);
138
_ = Throw.
IfNull
(responseUpdates);
181
_ = Throw.
IfNull
(messages);
263
OpenAIChatClient.FromOpenAIChatCompletion(Throw.
IfNull
(chatCompletion), options);
277
OpenAIChatClient.FromOpenAIStreamingChatCompletionAsync(Throw.
IfNull
(chatCompletionUpdates), options, cancellationToken);
MicrosoftExtensionsAIRealtimeExtensions.cs (1)
21
OpenAIRealtimeConversationClient.ToOpenAIConversationFunctionTool(Throw.
IfNull
(function));
MicrosoftExtensionsAIResponsesExtensions.cs (9)
25
OpenAIResponsesChatClient.ToResponseTool(Throw.
IfNull
(function));
36
OpenAIResponsesChatClient.ToResponseTool(Throw.
IfNull
(tool));
53
OpenAIResponsesChatClient.ToOpenAIResponseItems(Throw.
IfNull
(messages), options);
60
OpenAIResponsesChatClient.ToChatMessages(Throw.
IfNull
(items));
68
OpenAIResponsesChatClient.FromOpenAIResponse(Throw.
IfNull
(response), options, conversationId: null);
81
OpenAIResponsesChatClient.FromOpenAIStreamingResponseUpdatesAsync(Throw.
IfNull
(responseUpdates), options, conversationId: null, cancellationToken: cancellationToken);
89
_ = Throw.
IfNull
(response);
130
_ = Throw.
IfNull
(tools);
156
_ = Throw.
IfNull
(tool);
OpenAIAssistantsChatClient.cs (3)
47
_client = Throw.
IfNull
(assistantClient);
56
: this(assistantClient, Throw.
IfNull
(assistant).Id, defaultThreadId)
79
_ = Throw.
IfNull
(messages);
OpenAIChatClient.cs (5)
63
_chatClient = Throw.
IfNull
(chatClient);
73
_ = Throw.
IfNull
(serviceType);
88
_ = Throw.
IfNull
(messages);
109
_ = Throw.
IfNull
(messages);
487
_ = Throw.
IfNull
(openAICompletion);
OpenAIEmbeddingGenerator.cs (2)
50
_embeddingClient = Throw.
IfNull
(embeddingClient);
101
_ = Throw.
IfNull
(serviceType);
OpenAIImageGenerator.cs (3)
41
_imageClient = Throw.
IfNull
(imageClient);
49
_ = Throw.
IfNull
(request);
52
_ = Throw.
IfNull
(prompt);
OpenAIResponsesChatClient.cs (5)
69
_ = Throw.
IfNull
(responseClient);
79
_ = Throw.
IfNull
(serviceType);
93
_ = Throw.
IfNull
(messages);
263
_ = Throw.
IfNull
(messages);
1531
_ = Throw.
IfNull
(serviceType);
OpenAISpeechToTextClient.cs (4)
39
_audioClient = Throw.
IfNull
(audioClient);
47
_ = Throw.
IfNull
(serviceType);
61
_ = Throw.
IfNull
(audioSpeechStream);
114
_ = Throw.
IfNull
(audioSpeechStream);