Open
Description
Describe the bug
INVALID_ARGUMENT. {'error': {'code': 400, 'message': 'Please ensure that function call turn comes immediately after a user turn or after a function response turn.', 'status': 'INVALID_ARGUMENT'}}
User turn: [{message: "Help me", role: "user"]
Model turn: [{message: "How I can help you today", role: "user"] // why agent response but role is "user"
When I got above error, I see the role is "user" instead of "model"
The error occurs RANDOMLY
Desktop (please complete the following information):
- Python version(python -V): 3.10
- ADK version(pip show google-adk): 1.2.1
Additional context
I use remote mysql database session