You've already forked adk-python
mirror of
https://github.com/encounter/adk-python.git
synced 2026-03-30 10:57:20 -07:00
chore: Improve error message for missing invocation_id and new_message in run_async
Help with issue in #3801 Co-authored-by: George Weale <gweale@google.com> PiperOrigin-RevId: 840833736
This commit is contained in:
committed by
Copybara-Service
parent
b7ce5e17b6
commit
de841a4a09
@@ -412,7 +412,11 @@ class Runner:
|
||||
message = self._format_session_not_found_message(session_id)
|
||||
raise ValueError(message)
|
||||
if not invocation_id and not new_message:
|
||||
raise ValueError('Both invocation_id and new_message are None.')
|
||||
raise ValueError(
|
||||
'Running an agent requires either a new_message or an '
|
||||
'invocation_id to resume a previous invocation. '
|
||||
f'Session: {session_id}, User: {user_id}'
|
||||
)
|
||||
|
||||
if invocation_id:
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user