Error: the Action Input is not a valid key, value dictionary

No matter what I try I am always getting the following error when I try to use my custom tools:

## Tool Output: 
Error: the Action Input is not a valid key, value dictionary.

(the tool has more than one parameter)

  • Already tried different LLMs (gpt4, 4o, 4o mini)
  • Tried this approach
  • Tried using tool decorator
  • Commenting some fields in the args_schema
  • Use and not using type hinting in the tools function argumetns