mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-14 16:18:03 +00:00
Add script for listing tools
This commit is contained in:
1 parent
927e36bbb6
commit
513a321741
2 files changed
+123
-3
No files matched your search
@@ -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()}")
|
||||
Reference in new issue
Block a user