We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0f4948 commit 87fca92Copy full SHA for 87fca92
src/google/adk/tools/agent_tool.py
@@ -189,6 +189,9 @@ async def run_async(
189
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
+ # no text present -> no json, return empty string
193
+ if not merged_text:
194
+ return ''
195
if isinstance(self.agent, LlmAgent) and self.agent.output_schema:
196
tool_result = self.agent.output_schema.model_validate_json(
197
merged_text
0 commit comments