> For autonomous subagents with tool calls, code execution, or multi-step reasoning: set thinking_level to "medium" or "high" to prevent premature tool termination.
I just happened to see that in the docs: https://ai.google.dev/gemini-api/docs/latest-model