Let the agent know that the tools were succesful
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3568950. -->
Reported by: [marcus_johansson](https://www.drupal.org/user/385947)
Related to !493
>>>
<h3 id="overview">Overview</h3>
<p>Currently when we run set_component_structure, to set some structure to save the function returns empty string when its succesful and only returns an error message when its not.</p>
<p>While most LLMs can figure out that by association, it's better to be explicit.</p>
<p>More so, we have found that if you combine Mistral via LiteLLM, an empty content string is treated as a empty call. I would call that a bug in that combination to be honest, I can think of some use cases where an empty string is an actual allowed call.</p>
<p>However we should fix this anyway, to make the process more explicit.</p>
<p>We have found this in multiple places and it should be fixed everywhere.</p>
<h3 id="proposed-resolution">Proposed resolution</h3>
<p>Add an textual output, not just structured output in all function calls where its missing to add to reliability.</p>
issue