17 references to IfNullOrWhitespace
Microsoft.Extensions.AI.Abstractions (17)
ChatCompletion\ChatFinishReason.cs (1)
27
_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)
83
_uri = Throw.
IfNullOrWhitespace
(uri);
Contents\DataUriParser.cs (1)
75
_ = Throw.
IfNullOrWhitespace
(mediaType, parameterName);
Contents\HostedFileContent.cs (2)
30
_fileId = Throw.
IfNullOrWhitespace
(fileId);
41
set => _fileId = Throw.
IfNullOrWhitespace
(value);
Contents\HostedVectorStoreContent.cs (2)
31
_vectorStoreId = Throw.
IfNullOrWhitespace
(vectorStoreId);
42
set => _vectorStoreId = Throw.
IfNullOrWhitespace
(value);
Contents\McpServerToolCallContent.cs (3)
31
CallId = Throw.
IfNullOrWhitespace
(callId);
32
ToolName = Throw.
IfNullOrWhitespace
(toolName);
33
ServerName = Throw.
IfNullOrWhitespace
(serverName);
Contents\McpServerToolResultContent.cs (1)
29
CallId = Throw.
IfNullOrWhitespace
(callId);
Contents\UserInputRequestContent.cs (1)
24
Id = Throw.
IfNullOrWhitespace
(id);
Contents\UserInputResponseContent.cs (1)
24
Id = Throw.
IfNullOrWhitespace
(id);
SpeechToText\SpeechToTextResponseUpdateKind.cs (1)
50
Value = Throw.
IfNullOrWhitespace
(value);
Tools\HostedMcpServerTool.cs (1)
38
ServerName = Throw.
IfNullOrWhitespace
(serverName);