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 033b63e commit c1d29eeCopy full SHA for c1d29ee
apex/services/deep_research/deep_research_langchain.py
@@ -1,4 +1,5 @@
1
import asyncio
2
+import contextlib
3
from typing import Any
4
5
import tenacity
@@ -272,7 +273,8 @@ async def invoke(
272
273
else:
274
try:
275
# PythonREPL returns only printed output (may include trailing newline)
- repl_output = self.python_repl.run(code)
276
+ with contextlib.redirect_stdout(None):
277
+ repl_output = self.python_repl.run(code)
278
observation_text = repl_output if repl_output else "(no output)"
279
logger.debug(f"Code execution result:\n{observation_text}")
280
except Exception as e: # noqa: BLE001
0 commit comments