From 79fb28c54de18c9cbaf710adf794f0bea5c5f1e0 Mon Sep 17 00:00:00 2001 From: sysradium Date: Tue, 22 Apr 2025 15:27:29 +0200 Subject: [PATCH] fixup: add missing description to ListDir tool --- src/serena/agent.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/serena/agent.py b/src/serena/agent.py index 83580f53..80e80908 100644 --- a/src/serena/agent.py +++ b/src/serena/agent.py @@ -644,6 +644,8 @@ class ListDirTool(Tool): def apply(self, relative_path: str, recursive: bool, max_answer_chars: int = _DEFAULT_MAX_ANSWER_LENGTH) -> str: """ + Lists files and directories in the given directory (optionally with recursion). + :param relative_path: the relative path to the directory to list; pass "." to scan the project root :param recursive: whether to scan subdirectories recursively :param max_answer_chars: if the output is longer than this number of characters, @@ -1092,7 +1094,7 @@ class WriteMemoryTool(Tool): """ if len(content) > max_answer_chars: raise ValueError( - f"Content for {memory_file_name } is too long. Max length is {max_answer_chars} characters. " + f"Content for {memory_file_name} is too long. Max length is {max_answer_chars} characters. " + "Please make the content shorter." )