Description
** Please make sure you read the contribution guide and file the issues in the right place. **
Contribution guide.
Describe the bug
When an ask_llm_agent is configured with both tools and include_contents="none", the execution of the tool enters an infinite loop, never terminating. This behavior is unexpected and indicates a bug that needs to be addressed.
To Reproduce
Steps to reproduce the behavior:
- Create an ask_llm_agent:
- Configure the agent to use one or more tools.
- Set include_contents="none" in the agent's configuration.
Expected behavior
The ask_llm_agent should execute the tool once, process its output, and provide a response, even when include_contents="none" is set. The agent should not enter an infinite loop.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: Windows
- Python version(python -V): 3.11
- ADK version(pip show google-adk): Main version
Additional context
Add any other context about the problem here.