Skip to content

Commit 7957286

Browse files
Update src/google/adk/code_executors/coding_agent_code_executor.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 1428127 commit 7957286

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/google/adk/code_executors/coding_agent_code_executor.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,11 @@ def _replay_history(
315315
invocation_context=invocation_context,
316316
code_execution_input=input_data,
317317
)
318+
if last_result.stderr:
319+
raise RuntimeError(
320+
f'Failed to replay history step with hash {step.code_hash}. '
321+
f'Error: {last_result.stderr}'
322+
)
318323
logger.debug("Replayed history step: %s", step.code_hash)
319324

320325
return last_result

0 commit comments

Comments
 (0)