Skip to content

Commit 596403b

Browse files
authored
fix: update tool with default param values (#902)
# Motivation <!-- Why is this change necessary? --> # Content <!-- Please include a summary of the change --> # Testing <!-- How was the change tested? --> # Please check the following before marking your PR as ready for review - [ ] I have added tests for my changes - [ ] I have updated the documentation or added new documentation as needed
1 parent 957bd60 commit 596403b

File tree

1 file changed

+1
-1
lines changed
  • src/codegen/extensions/langchain

1 file changed

+1
-1
lines changed

src/codegen/extensions/langchain/tools.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1111,6 +1111,6 @@ class SearchFilesByNameTool(BaseTool):
11111111
def __init__(self, codebase: Codebase):
11121112
super().__init__(codebase=codebase)
11131113

1114-
def _run(self, pattern: str, page: int, files_per_page: int | float) -> str:
1114+
def _run(self, pattern: str, page: int = 1, files_per_page: int | float = 10) -> str:
11151115
"""Execute the glob pattern search using fd."""
11161116
return search_files_by_name(self.codebase, pattern, page=page, files_per_page=files_per_page).render()

0 commit comments

Comments
 (0)