From 915da8dc9f91d2335eb8834686230d122555a8db Mon Sep 17 00:00:00 2001 From: Dominik Jain Date: Thu, 10 Jul 2025 23:19:18 +0200 Subject: [PATCH] Fix demo script --- scripts/demo_run_tools.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/demo_run_tools.py b/scripts/demo_run_tools.py index 64929b38..394fe553 100644 --- a/scripts/demo_run_tools.py +++ b/scripts/demo_run_tools.py @@ -3,10 +3,13 @@ This script demonstrates how to use Serena's tools locally, useful for testing or development. Here the tools will be operation the serena repo itself. """ +import json from pprint import pprint -from serena.agent import * +from serena.agent import SerenaAgent +from serena.config.serena_config import SerenaConfig from serena.constants import REPO_ROOT +from serena.tools import FindFileTool, FindReferencingSymbolsTool, SearchForPatternTool if __name__ == "__main__": agent = SerenaAgent(project=REPO_ROOT, serena_config=SerenaConfig(gui_log_window_enabled=False, web_dashboard=False)) @@ -18,7 +21,7 @@ if __name__ == "__main__": result = agent.execute_task( lambda: search_pattern_tool.apply( - r"def request_parsed_files.*?\).*?\)", + r"def request_full_.*?\).*?\)", restrict_search_to_code_files=False, relative_path="src/solidlsp", paths_include_glob="**/ls.py",