Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!
Python
dev: Make clearer tools exceptions
Clémence Lesnédce8adc44b84
diff --git a/app/helpers/llm_utils.py b/app/helpers/llm_utils.pyindex 128ff64..ee35f8e 100644--- a/app/helpers/llm_utils.py+++ b/app/helpers/llm_utils.py@@ -138,13 +138,8 @@ class AbstractPlugin:logger.info("Executed function %s (%s): %s", name, args, res_log)# Catch wrong arguments- except TypeError as e:- logger.warning(- "Wrong arguments for function %s: %s. Error: %s",- name,- args,- e,- )+ except TypeError:+ logger.exception("Wrong arguments for function %s: %s.", name, args)res = "Wrong arguments, please fix them and try again."res_log = res