-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Description
Bug
The ADK is returning internal thinking steps in the output. These internal messages fall under the partial: true flag and are being streamed to the client. I am using SSE streaming with FastAPI endpoints.
To Reproduce
Steps to reproduce the behavior:
- Install google-adk==1.17.0
- Run 'main.py'
- Error (example):
{
"author": "TravelAgent",
"invocation_id": "e-xyz...",
"content": {"parts": [{"text": "Okay, the user is trying to cancel a leave, this clearly indicates the need to identify and cancel a leave request. The cancel_leave_request_tool is the primary tool for cancelling ], so i should use this ......"}]},
"partial": True,
"turn_complete": true
}
Expected behavior
The agent should never output internal thinking or intermediate messages when partial: true.
Screenshots
Desktop (please complete the following information):
- OS: Windows
- Python version(python -V): 3.12.5
- ADK version(pip show google-adk): 1.17.0
Model Information:
- Are you using LiteLLM: Yes
- Which model is being used: gemini-2.5-flash