8000 Ask LLM Agent with include_contents="none" and Tools Loops Infinitely · Issue #1124 · google/adk-python · GitHub
[go: up one dir, main page]

Skip to content
Ask LLM Agent with include_contents="none" and Tools Loops Infinitely #1124
Open
@darkmars27

Description

@darkmars27

** 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.

Metadata

Metadata

Assignees

Labels

coreIssues related to the core interface and implementation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0