Skip to content

Commit afe916b

Browse files
authored
Merge pull request #254 from dhanushreddy291/main
fix tool dependecies installation
2 parents 1a6952f + cb1a755 commit afe916b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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(' '.join(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)