From 7720616c5f1dc302f019c348a6dfa70d1cf0b135 Mon Sep 17 00:00:00 2001 From: Che Liu Date: Wed, 3 Sep 2025 22:00:17 -0700 Subject: [PATCH] chore: Update comment to clarify `after_run` callbacks PiperOrigin-RevId: 802852137 --- src/google/adk/runners.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/google/adk/runners.py b/src/google/adk/runners.py index bcf29839..75cd455c 100644 --- a/src/google/adk/runners.py +++ b/src/google/adk/runners.py @@ -296,7 +296,9 @@ class Runner: ) yield (modified_event if modified_event else event) - # Step 4: Run the after_run callbacks to optionally modify the context. + # Step 4: Run the after_run callbacks to perform global cleanup tasks or + # finalizing logs and metrics data. + # This does NOT emit any event. await plugin_manager.run_after_run_callback( invocation_context=invocation_context )