Simplify search_text interface and handling of patterns

This commit is contained in:
Michael Panchenko committed 2025-06-30 21:17:28 +02:00
1 parent 81e0a324a5
commit 4d3281b7e7
4 files changed
+55 -82

No files matched your search

+1 -3
View File
@@ -28,8 +28,6 @@ if __name__ == "__main__":
search_pattern_tool = agent.get_tool(SearchForPatternTool)
result = agent.execute_task(
lambda: search_pattern_tool.apply(
".*Pyright.*|.*Omnisharp.*", restrict_search_to_code_files=False, relative_path="src/solidlsp/ls.py"
)
lambda: search_pattern_tool.apply("\n[^\n]*?Pyright", restrict_search_to_code_files=False, relative_path="src/solidlsp/ls.py")
)
pprint(json.loads(result))