Skip to content
Discussion options

You must be logged in to vote

Update: Root Cause Identified & Workaround Implemented

I've found the root cause and successfully implemented a workaround for this issue.

Root Cause

This behavior is tracked in Issue #2207 and was closed as "NOT_PLANNED". The ADK team considers the automatic injection of agent transition messages ([agent_name] said:) intentional.

This means there's no built-in configuration to disable it, but we can work around it using callbacks.

Solution: before_model_callback

For template-only pipelines where agents receive all data through template variables (e.g., {summary}), you can use before_model_callback to clear conversation history before the request is sent to the LLM:

from google.adk.agents i…

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@zmy1116
Comment options

@prabha-git
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by llalitkumarrr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants