isTeamMemorySearch function

bool isTeamMemorySearch(
  1. Map<String, dynamic>? toolInput
)

Check if a search tool use targets team memory files.

Implementation

bool isTeamMemorySearch(Map<String, dynamic>? toolInput) {
  if (toolInput == null) return false;
  final path = toolInput['path'] as String?;
  if (path != null && isTeamMemFile(path)) return true;
  return false;
}