update block code

This commit is contained in:
Yuhang Zhou
2025-07-03 13:50:01 +08:00
parent ca07af0584
commit 7b0d5ed4eb

View File

@@ -574,6 +574,15 @@ class SearchToolkit(BaseToolkit):
"long_description": long_description,
"url": link,
}
# skip huggingface GAIA results
if "huggingface" in link.lower() and "gaia" in link.lower():
continue
# skip GAIA paper results
if "2311.12983" in link.lower():
continue
# skip GAIA benchmark results
if "gaia" in snippet.lower() and "benchmark" in snippet.lower():
continue
responses.append(response)
else:
responses.append({"error": "google search failed."})