From 8a3ce35cae29a93748842ba463231d6c78d181e7 Mon Sep 17 00:00:00 2001 From: Dominik Jain Date: Tue, 29 Sep 2026 12:49:17 +0200 Subject: [PATCH] SerenaReplTool: Make clear that print and other output functions cannot be used [skip ci] --- src/serena/tools/repl_tools.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/serena/tools/repl_tools.py b/src/serena/tools/repl_tools.py index 14df5c61..0dabaf8d 100644 --- a/src/serena/tools/repl_tools.py +++ b/src/serena/tools/repl_tools.py @@ -34,8 +34,9 @@ class SerenaReplTool(Tool, ToolMarkerOptional, ToolMarkerBeta): calls). The code is executed like a notebook cell: if its last statement is an expression, the expression's value is - the result. Results are rendered in a form suitable for you; lists are rendered element-wise, + the result. Results of facade methods are rendered in a form optimised for you; lists are rendered element-wise, strings are passed through unchanged. + You cannot use `print` or other output functions to return content; only use the last expression to return content. Output size: methods with a `max_answer_chars` parameter limit the size of the rendered result (-1 uses the configured default). If the limit is exceeded, a shortened result (or no content) is rendered instead;