langchain
6c629b54 - Fixed arguments passed to InvalidTool.run(). (#1340)

Commit
2 years ago
Fixed arguments passed to InvalidTool.run(). (#1340) [InvalidTool.run()](https://github.com/hwchase17/langchain/blob/72ef69d1ba33f052bf3948c1e1d7d6441b14af0a/langchain/agents/tools.py#L43) returns "{arg}is not a valid tool, try another one.". However, no function name is actually given in the argument. This causes LLM to be stuck in a loop, unable to find the right tool. This may resolve these Issues. https://github.com/hwchase17/langchain/issues/998 https://github.com/hwchase17/langchain/issues/702
Author
Parents
Loading