style: format

This commit is contained in:
Henry Li
2026-01-14 09:21:19 +08:00
parent 421488a991
commit 2aeaf7c965
5 changed files with 9 additions and 28 deletions

View File

@@ -7,8 +7,4 @@ from src.reflection import resolve_variable
def get_available_tools(groups: list[str] | None = None) -> list[BaseTool]:
"""Get all available tools from config"""
config = get_app_config()
return [
resolve_variable(tool.use, BaseTool)
for tool in config.tools
if groups is None or tool.group in groups
]
return [resolve_variable(tool.use, BaseTool) for tool in config.tools if groups is None or tool.group in groups]