We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0094eea commit d0f4948Copy full SHA for d0f4948
1 file changed
src/google/adk/tools/agent_tool.py
@@ -186,7 +186,7 @@ async def run_async(
186
# to avoid "Attempted to exit cancel scope in a different task" errors
187
await runner.close()
188
189
- if not last_content:
+ if not last_content or not last_content.parts:
190
return ''
191
merged_text = '\n'.join(p.text for p in last_content.parts if p.text)
192
if isinstance(self.agent, LlmAgent) and self.agent.output_schema:
0 commit comments