I have an assistant with a single function. Yet the Assistants API returns multiple tool_calls and expects results from all of them
I noticed the errors because my backend does a POST to …/submit_tool_outputs with the result for the function call I defined, however that throws an error, because the API expects multiple.
Upon further inspection, it seems the API often expects tool_calls for names including:
search, calculate or open_url
This doesn’t really make sense and is causing problems, I assume those are tools that OpenAI should be handling.
Can you post code snippets of your api calls and the prompts behind them? any function definitions you have as well please, also could you include the logs from the posts? As much data as you can to help us to help you.
The issue seems to be that the submit_tool_outputs endpoint expects outputs from other “tools”, which I guess are internal to OpenAI e.g. I have seen “calculate” and “search”