🐛 Notebook agent_rag.ipynb : Unexpected keyword argument 'verbose' for ToolCallingAgent #290
Conversation
Tested on `smolagents==1.9.2`
```python
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Cell In[9], line 4
1 model = HfApiModel() # model_id="meta-llama/Llama-3.1-70B-Instruct")
3 retriever_tool = RetrieverTool(vectordb=vectordb)
----> 4 agent = ToolCallingAgent(tools=[retriever_tool], model=model, verbose=True)
5 agent.visualize()
File ~/repos/hf_nlp_course/venv/lib/python3.11/site-packages/smolagents/agents.py:1051, in ToolCallingAgent.__init__(self, tools, model, prompt_templates, planning_interval, **kwargs)
1040 def __init__(
1041 self,
1042 tools: List[Tool],
(...)
1046 **kwargs,
1047 ):
1048 prompt_templates = prompt_templates or yaml.safe_load(
1049 importlib.resources.files("smolagents.prompts").joinpath("toolcalling_agent.yaml").read_text()
1050 )
-> 1051 super().__init__(
1052 tools=tools,
1053 model=model,
1054 prompt_templates=prompt_templates,
1055 planning_interval=planning_interval,
1056 **kwargs,
1057 )
TypeError: MultiStepAgent.__init__() got an unexpected keyword argument 'verbose'
```
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
ToolCallingAgent: Unexpected keyword argument 'verbose'agent_rag.ipynb : Unexpected keyword argument 'verbose' for ToolCallingAgent
agent_rag.ipynb : Unexpected keyword argument 'verbose' for ToolCallingAgent agent_rag.ipynb : Unexpected keyword argument 'verbose' for ToolCallingAgent
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
merveenoyan
left a comment
There was a problem hiding this comment.
not in ToolCallingAgent indeed but the parent class has verbosity_level it seems, can you try that? otherwise LGTM
Thanks for your feedback @merveenoyan |
|
@merveenoyan It seems that I do not have permission to merge this PR, as I do not see a merge button, despite your approval of the PR. So I guess someone else will have to do it. Sorry for the inconvenience. |
Tested on
smolagents==1.9.2Error message:
What does this PR do?
Fixes # (issue)
Who can review?
Feel free to tag members/contributors who may be interested in your PR.