Extended docstring of SearchForPatternTool

The LM had a hard time doing good searches.
This commit is contained in:
Michael Panchenko committed 2025-07-01 13:18:59 +02:00
1 parent 4d3281b7e7
commit c2c7d35e99
2 files changed
+40 -9

No files matched your search

+6 -1
View File
@@ -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))