Commit dedec64
committed
fix(adk): resolve multi-turn conversation failure with None user_message
Fix two bugs in adk_agent.py that caused multi-turn conversations to fail
with "Both invocation_id and new_message are None" error on the second message.
Bug 1: The conditional `if message_batch else None` incorrectly set user_message
to None when message_batch was not explicitly passed, even when unseen_messages
contained valid user messages.
Bug 2: When unseen_messages was empty (because all messages were already marked
as processed by ID), there was no fallback to extract the latest user message
from input.messages.
Fixes #7691 parent 76914c2 commit dedec64
File tree
1 file changed
+8
-1
lines changed- integrations/adk-middleware/python/src/ag_ui_adk
1 file changed
+8
-1
lines changedLines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1077 | 1077 | | |
1078 | 1078 | | |
1079 | 1079 | | |
1080 | | - | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
1081 | 1084 | | |
1082 | 1085 | | |
1083 | 1086 | | |
| |||
1185 | 1188 | | |
1186 | 1189 | | |
1187 | 1190 | | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
1188 | 1195 | | |
1189 | 1196 | | |
1190 | 1197 | | |
| |||
0 commit comments