24 references to IfNullOrWhitespace
Microsoft.Extensions.AI.Abstractions (24)
ChatCompletion\ChatFinishReason.cs (1)
24
Value = Throw.
IfNullOrWhitespace
(value);
ChatCompletion\ChatRole.cs (1)
48
Value = Throw.
IfNullOrWhitespace
(value);
ChatCompletion\RequiredChatToolMode.cs (1)
38
_ = Throw.
IfNullOrWhitespace
(requiredFunctionName);
Contents\DataContent.cs (1)
86
_uri = Throw.
IfNullOrWhitespace
(uri);
Contents\DataUriParser.cs (1)
85
_ = Throw.
IfNullOrWhitespace
(mediaType, parameterName);
Contents\HostedFileContent.cs (2)
31
FileId = Throw.
IfNullOrWhitespace
(fileId);
42
set => field = Throw.
IfNullOrWhitespace
(value);
Contents\HostedVectorStoreContent.cs (2)
31
_vectorStoreId = Throw.
IfNullOrWhitespace
(vectorStoreId);
42
set => _vectorStoreId = Throw.
IfNullOrWhitespace
(value);
Contents\InputRequestContent.cs (1)
24
RequestId = Throw.
IfNullOrWhitespace
(requestId);
Contents\InputResponseContent.cs (1)
24
RequestId = Throw.
IfNullOrWhitespace
(requestId);
Contents\McpServerToolCallContent.cs (2)
35
: base(Throw.
IfNullOrWhitespace
(callId))
37
Name = Throw.
IfNullOrWhitespace
(name);
Contents\McpServerToolResultContent.cs (1)
26
: base(Throw.
IfNullOrWhitespace
(callId))
Files\HostedFileClientExtensions.cs (2)
101
_ = Throw.
IfNullOrWhitespace
(fileId);
190
_ = Throw.
IfNullOrWhitespace
(fileId);
Functions\AIFunctionNameAttribute.cs (1)
26
Name = Throw.
IfNullOrWhitespace
(name);
Functions\AIParameterNameAttribute.cs (1)
26
Name = Throw.
IfNullOrWhitespace
(name);
Realtime\RealtimeServerMessageType.cs (1)
109
Value = Throw.
IfNullOrWhitespace
(value);
Realtime\RealtimeSessionKind.cs (1)
46
Value = Throw.
IfNullOrWhitespace
(value);
SpeechToText\SpeechToTextResponseUpdateKind.cs (1)
51
Value = Throw.
IfNullOrWhitespace
(value);
TextToSpeech\TextToSpeechResponseUpdateKind.cs (1)
51
Value = Throw.
IfNullOrWhitespace
(value);
Tools\HostedMcpServerTool.cs (2)
27
ServerName = Throw.
IfNullOrWhitespace
(serverName);
28
ServerAddress = Throw.
IfNullOrWhitespace
(serverAddress);