mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-13 22:16:23 +00:00
Simplify search_text interface and handling of patterns
This commit is contained in:
1 parent
81e0a324a5
commit
4d3281b7e7
4 files changed
+55
-82
No files matched your search
@@ -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))
|
||||
Reference in new issue
Block a user