mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-14 08:18:36 +00:00
Extended docstring of SearchForPatternTool
The LM had a hard time doing good searches.
This commit is contained in:
1 parent
4d3281b7e7
commit
c2c7d35e99
2 files changed
+40
-9
No files matched your search
@@ -28,6 +28,11 @@ if __name__ == "__main__":
|
||||
search_pattern_tool = agent.get_tool(SearchForPatternTool)
|
||||
|
||||
result = agent.execute_task(
|
||||
lambda: search_pattern_tool.apply("\n[^\n]*?Pyright", restrict_search_to_code_files=False, relative_path="src/solidlsp/ls.py")
|
||||
lambda: search_pattern_tool.apply(
|
||||
r"def request_parsed_files.*?\).*?\)",
|
||||
restrict_search_to_code_files=False,
|
||||
relative_path="src/solidlsp",
|
||||
paths_include_glob="**/ls.py",
|
||||
)
|
||||
)
|
||||
pprint(json.loads(result))
|
||||
Reference in new issue
Block a user