Skip to content

Commit fc765f4

Browse files
dhanushreddy291bboynton97
authored andcommitted
loop over dependencies
1 parent a91bdae commit fc765f4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

agentstack/generation/tool_generation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ def add_tool(name: str, agents: Optional[list[str]] = []):
1919
log.notify(f'Tool {name} is already installed')
2020
else: # handle install
2121
if tool.dependencies:
22-
packaging.install(tool.dependencies)
22+
for dependency in tool.dependencies:
23+
packaging.install(dependency)
2324

2425
if tool.env: # add environment variables which don't exist
2526
with EnvFile() as env:

0 commit comments

Comments
 (0)