Simplify configuration management, unifying SerenaConfigBase and SerenaConfig

and removing other subclasses
This commit is contained in:
Dominik Jain authored and Dominik Jain committed 2025-07-02 16:09:25 +02:00
1 parent 85a9e47c5b
commit 8577616436
3 files changed
+102 -158

No files matched your search

+1 -12
View File
@@ -8,19 +8,8 @@ from pprint import pprint
from serena.agent import *
from serena.constants import REPO_ROOT
@dataclass
class InMemorySerenaConfig(SerenaConfigBase):
"""
In-memory implementation of Serena configuration with the GUI disabled.
"""
gui_log_window_enabled: bool = False
web_dashboard: bool = False
if __name__ == "__main__":
agent = SerenaAgent(project=REPO_ROOT, serena_config=InMemorySerenaConfig())
agent = SerenaAgent(project=REPO_ROOT, serena_config=SerenaConfig(gui_log_window_enabled=False, web_dashboard=False))
# apply a tool
find_refs_tool = agent.get_tool(FindReferencingSymbolsTool)