Add script for listing tools

This commit is contained in:
Dominik Jain committed 2025-03-31 17:28:58 +02:00
1 parent 927e36bbb6
commit 513a321741
2 files changed
+123 -3

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
from serena.agent import SerenaAgent
if __name__ == "__main__":
agent = SerenaAgent("myproject.yml")
tools = {}
for tool in agent.tools.values():
tools[tool.get_name()] = tool
for tool_name in sorted(tools.keys()):
tool = tools[tool_name]
print(f" * `{tool_name}`: {tool.get_tool_description().strip()}")