Skip to content

Commit 39d9e8e

Browse files
committed
Allow callbacks to execute even when end_invocation is True
1 parent e79651c commit 39d9e8e

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
@@ -147,9 +147,6 @@ async def run_async(
147147
async for event in self._run_async_impl(ctx):
148148
yield event
149149

150-
if ctx.end_invocation:
151-
return
152-
153150
if event := await self.__handle_after_agent_callback(ctx):
154151
yield event
155152

0 commit comments

Comments
 (0)