the search_query field is probably empty on some loop iterations — happens when the input data isnt set right. what does your input to the SerpAPI node actually look like?
What Ollama model are you running? A lot of the smaller local models dont handle tool calling well so the agent never actually passes a search query to SerpAPI, it just sends empty input.
Yeah so qwen2.5:7b is the problem, it returned 0 completion tokens which means it’s not generating proper tool calls. Try switching to a bigger model like qwen2.5:14b or llama3.1:8b (the instruct variant) since those handle tool use much better. The 7b qwen model is just too small to reliably format tool calling output.