mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-14 02:16:21 +00:00
Autogenerated project.yaml now uses the template and includes the comments
This commit is contained in:
1 parent
0e5db6d6ca
commit
5bd9c5b69e
5 files changed
+87
-37
No files matched your search
@@ -1,19 +1,16 @@
|
||||
"""
|
||||
This script demonstrates how to use Serena's tools locally, useful
|
||||
for testing or development. Here the config is pointing to the serena repo itself,
|
||||
it assumes that you already have a serena_config.yml file setup.
|
||||
for testing or development. Here the tools will be operation the serena repo itself.
|
||||
"""
|
||||
|
||||
import json
|
||||
from pathlib import Path
|
||||
from pprint import pprint
|
||||
|
||||
from serena.agent import *
|
||||
|
||||
project_root = Path(__file__).parent.parent
|
||||
from serena.constants import REPO_ROOT
|
||||
|
||||
if __name__ == "__main__":
|
||||
agent = SerenaAgent(project_config=str(project_root / ".serena" / "project.yml"))
|
||||
agent = SerenaAgent(project=REPO_ROOT)
|
||||
overview_tool = agent.get_tool(GetSymbolsOverviewTool)
|
||||
find_symbol_tool = agent.get_tool(FindSymbolTool)
|
||||
|
||||
|
||||
Reference in new issue
Block a user