|
|
|
@ -65,7 +65,7 @@ class MoviesAdviceSearchTool(BaseTool): |
|
|
|
result += search_tool.run(f"{query} site:{rec_site}") |
|
|
|
result += search_tool.run(f"{query} site:{rec_site}") |
|
|
|
except Exception as e: |
|
|
|
except Exception as e: |
|
|
|
result += f"Error searching on {rec_site}: {str(e)}\n" |
|
|
|
result += f"Error searching on {rec_site}: {str(e)}\n" |
|
|
|
time.sleep(5) # Sleep for 1 second to avoid hitting the API too fast |
|
|
|
time.sleep(1) # Sleep for 1 second to avoid hitting the API too fast |
|
|
|
result += "\n\n" |
|
|
|
result += "\n\n" |
|
|
|
print(f"Searching for '{query}' on {rec_site}...\n") |
|
|
|
print(f"Searching for '{query}' on {rec_site}...\n") |
|
|
|
return result |
|
|
|
return result |
|
|
|
|