Open dregules opened 3 weeks ago
seems like there's an issue with the tool selection in your agent execution plan.Ensure that the tool name is correctly specified as "requests_get" in your execution plan. If you're still facing issues, check if the RequestsWrapper from langchain_community.utilities supports the specified tool names or if there's any specific configuration required for it.
thanks for the input @sangam0406. However, that's precisely the issue here:
Action should simply be _'requestsget' and instead it states: '_Use the requests_get
tool to perform a GET request to search for the author named "J. Tromp"'_
It's inconsistent because it fails more than it works. I'd like to be able to either modify the config as you suggest or any other alternative to make it more robust. Thanks in advance!
Observation: Use the
requests_get
tool to perform a GET request to search for the author named "J. Tromp". is not a valid tool, try one of [requests_get, requests_post]. Thought:It seems I made an error in specifying the action. I should use therequests_get
tool correctly.Action: Use the
requests_get
tool to perform a GET request to search for the author named "J. Tromp".
welcome
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
And it goes on and on until max iterations is hit.
Description
I don't know how/where to modify/influence api_controller prompt instructions to be more strict. The behavior is very inconsistent with. Maybe 1 out of 10 attempts will work as expected, where api_controller's Action will correctly specify just 'requests_get'. using gpt-4-0125-preview as LLM improves the behavior somewhat, though it is a lot slower.
System Info
gpt-4o