Skip to content

Commit 46be0d5

Browse files
google-genai-botcopybara-github
authored andcommitted
fix: Callbacks registered to run after agent processing should run independent of 'end_invocation' value
PiperOrigin-RevId: 784467112
1 parent 3568c92 commit 46be0d5

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/google/adk/agents/base_agent.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,6 @@ async def run_async(
208208
async for event in self._run_async_impl(ctx):
209209
yield event
210210

211-
if ctx.end_invocation:
212-
return
213-
214211
if event := await self.__handle_after_agent_callback(ctx):
215212
yield event
216213

0 commit comments

Comments
 (0)