You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Running smolagent using cli and getting following error: Tool.from_space() missing 2 required positional arguments: 'name' and 'description'
Code to reproduce the error
smolagent "Translate 'Hello World' to French" --tools "Genius-Society/translator:translator:Translate text from English to French"
Error logs (if any)
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Users\touse\anaconda3\envs\smolagents\Scripts\smolagent.exe\__main__.py", line 7, in <module>
File "D:\Convo\smolagents\src\smolagents\cli.py", line 104, in main
available_tools.append(Tool.from_space(tool_name))
^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Tool.from_space() missing 2 required positional arguments: 'name' and 'description'
Expected behavior
name and description are required parameters so we have to pass it to Tool.from_space
Packages version: 1.10.0.dev0
The text was updated successfully, but these errors were encountered:
@albertvillanova I don't think so that's it is decided yet, I was facing this issue and got this solution, so I added a PR for this. According to you what will be the best approach to send these arguments?
Describe the bug
Running smolagent using cli and getting following error:
Tool.from_space() missing 2 required positional arguments: 'name' and 'description'
Code to reproduce the error
Error logs (if any)
Expected behavior
name and description are required parameters so we have to pass it to
Tool.from_space
Packages version:
1.10.0.dev0
The text was updated successfully, but these errors were encountered: