You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need google_search_tool only as in the context of the message there are launches like "search", "find". How to call agent_executor with such questions, everything works fine, but how to ask a normal question without search, then I get the error directly_answer is not a valid tool, try one of [google_search_tool]., latencies are higher than 6 times, but the model gave a normal response.
fromlangchain_google_communityimportGoogleSearchAPIWrapperfromlangchain_core.toolsimportToolfromconfigimportGOOGLE_API_KEYsearch=GoogleSearchAPIWrapper(google_api_key=GOOGLE_API_KEY)
google_search_tool=Tool(
name="google_search_tool",
description="Search Google for recent results.",
func=search.run
)
The text was updated successfully, but these errors were encountered:
stigmat4j
changed the title
'requested_tool_name': 'directly_answer', 'available_tool_names': ['google_search_tool']}
'requested_tool_name': 'directly_answer', 'available_tool_names': ['google_search_tool']
May 12, 2024
Hello. I need help.
I need google_search_tool only as in the context of the message there are launches like "search", "find". How to call agent_executor with such questions, everything works fine, but how to ask a normal question without search, then I get the error
directly_answer is not a valid tool, try one of [google_search_tool].
, latencies are higher than 6 times, but the model gave a normal response.The text was updated successfully, but these errors were encountered: