Tool function input should be object when no parameters are passed
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3547369. --> Reported by: [marcus_johansson](https://www.drupal.org/user/385947) Related to !892 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>When a tool doesn't have any parameters, the json response in the base provider becomes an array - as in <code>[]</code>.</p> <p>LiteLLM and Bedrock assumes this will be an empty object - <code>{}</code></p> <p>This uses a base class in the AI module, thus the change happening here.</p> <h4 id="summary-steps-reproduce">Steps to reproduce (required for bugs, but not feature requests)</h4> <p>Use LiteLLM with a tool that doesn't take inputs.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Set {} instead of []</p>
issue