I encountered the following unexpected results. I am asking for a structured response like the web search planner. I added local tool call to get the current date, because I found that it would plan for latest as of 2023.
I would expect for it to have one tool call to getCurrentDateTime, and then one response with the valid JSON. Usually I also got that, but when running it multiple times in a row, I also got this IMHO incorrect behavior
- Multiple text output items with JSON: In trace_99B5F1E98F0F4AB1AD26C18D81EA5F09
- superfluos multiple extra tool calls in addition to desired output: in trace_05D7433E066F44A69E8F443CB67FE44B
I am rolling my own agent framework in Swift, that’s how I noticed that because the Agents SDK hides this misbehavior because it stops the agent run loop when a suitable response is received, and only taks the first response. In other words it never sees these two issues.
Cheers
Oliver