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