We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a364388 commit 07bb164Copy full SHA for 07bb164
src/google/adk/tools/agent_tool.py
@@ -188,7 +188,9 @@ async def run_async(
188
189
if not last_content:
190
return ''
191
- merged_text = '\n'.join(p.text for p in last_content.parts if p.text)
+ merged_text = '\n'.join(
192
+ p.text for p in last_content.parts if p.text and not p.thought
193
+ )
194
if isinstance(self.agent, LlmAgent) and self.agent.output_schema:
195
tool_result = self.agent.output_schema.model_validate_json(
196
merged_text
0 commit comments