fixup: add missing description to ListDir tool

This commit is contained in:
sysradium committed 2025-04-22 15:27:29 +02:00
1 parent 0ed4c12209
commit 79fb28c54d
1 file changed
+3 -1
+3 -1
View File
@@ -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."
)