From 2c6ad7818cc905488f221bcaa494fed60886811b Mon Sep 17 00:00:00 2001 From: Miles Date: Sat, 4 Apr 2026 08:40:43 -0400 Subject: [PATCH] fix: remove erroneous $ in BrightData SERP search URL f-strings The get_search_url method used JavaScript template literal syntax (${query}) instead of Python f-string syntax ({query}), causing every search query to be prepended with a literal '$' character. --- .../crewai_tools/tools/brightdata_tool/brightdata_serp.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/crewai-tools/src/crewai_tools/tools/brightdata_tool/brightdata_serp.py b/lib/crewai-tools/src/crewai_tools/tools/brightdata_tool/brightdata_serp.py index 884a8ac8e..56bda13c3 100644 --- a/lib/crewai-tools/src/crewai_tools/tools/brightdata_tool/brightdata_serp.py +++ b/lib/crewai-tools/src/crewai_tools/tools/brightdata_tool/brightdata_serp.py @@ -131,10 +131,10 @@ def __init__( def get_search_url(self, engine: str, query: str) -> str: if engine == "yandex": - return f"https://yandex.com/search/?text=${query}" + return f"https://yandex.com/search/?text={query}" if engine == "bing": - return f"https://www.bing.com/search?q=${query}" - return f"https://www.google.com/search?q=${query}" + return f"https://www.bing.com/search?q={query}" + return f"https://www.google.com/search?q={query}" def _run( self,