FFFF
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7ce5e1 commit de841a4Copy full SHA for de841a4
src/google/adk/runners.py
@@ -412,7 +412,11 @@ async def _run_with_trace(
412
message = self._format_session_not_found_message(session_id)
413
raise ValueError(message)
414
if not invocation_id and not new_message:
415
- raise ValueError('Both invocation_id and new_message are None.')
+ raise ValueError(
416
+ 'Running an agent requires either a new_message or an '
417
+ 'invocation_id to resume a previous invocation. '
418
+ f'Session: {session_id}, User: {user_id}'
419
+ )
420
421
if invocation_id:
422
if (
0 commit comments