Commit 730ce3f
committed
fix: Fall back to code_execution_result.output when merged_text is empty
When an inner code-executor agent returns only executable_code and
code_execution_result (no text part), AgentTool.run_async was returning
empty string because merged_text only extracts p.text.
Now we check for code_execution_result.output as a fallback when
merged_text is empty or whitespace, preserving computational output
from inner agents that would otherwise be silently lost.
Fixes #54811 parent 2343973 commit 730ce3f
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
275 | 285 | | |
276 | 286 | | |
277 | 287 | | |
| |||
0 commit comments