crewAI icon indicating copy to clipboard operation
crewAI copied to clipboard

Issue with SerpDevTool search.

Open Jakc4der opened this issue 1 year ago • 2 comments

from crewai_tools import SeperDevTool, WebsiteSearchTool

Getting this error : Use Tool: Search the internet Query: "is there snow in italy right now?" Context: 2024-03-03 01:48:04.705842

It seems we encountered an unexpected error while trying to use the tool. This was the error: 'organic'.

Im also finding it quite hard to consistently have agents execute search queries in general. they seem to forget or not realise they are a llm connected to a pythong code via api and therefore get alot of error: no 'query' when they try to use the search tools provided, i currently am using yahoo finance, serpdevtool, duckduckgosearch, bravesearch. it feels like depending on what the {user_request} i set its a hit or miss wether or not its a successful search execution.

Jakc4der avatar Mar 02 '24 15:03 Jakc4der

From my research SeperDevTool is not added to the CrewAI Tools Repo https://github.com/joaomdmoura/crewAI-tools

MervinPraison avatar Mar 04 '24 09:03 MervinPraison

getting exact same problem in the instagram post code and I have double checked everything, cant see an issue.

It seems we encountered an unexpected error while trying to use the tool. This was the error: 'organic'

EDIT. What just solved it for me: turns out you cant put # comments at the end of KEY= statements in .env , it was sending my comment along with the key, and when you change .env file in VSCode, you also need to restart the terminal for changes to be picked up (maybe coz I use conda?).

I found this out by adding print statements to the search_tools.py file

    # Print URL, Headers, and Payload to debug what is being sent
    print("URL:", url)
    print("Headers:", headers)
    print("Payload:", payload)

to see what was being sent to SERPER.

might be something similar for you.

mdkberry avatar May 07 '24 03:05 mdkberry

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Aug 20 '24 10:08 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Aug 25 '24 12:08 github-actions[bot]