validateSearchInput function
Validate web search input.
Implementation
String? validateSearchInput(WebSearchInput input) {
if (input.query.length < 2) {
return 'Search query must be at least 2 characters';
}
if (input.allowedDomains != null && input.blockedDomains != null) {
return 'Cannot specify both allowed_domains and blocked_domains';
}
return null;
}