Skip to content

Commit 808c79a

Browse files
authored
ToolCallingAgent: Unexpected keyword argument 'verbose'
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' ```
1 parent 64eeba4 commit 808c79a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notebooks/en/agent_rag.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@
238238
"\n",
239239
"retriever_tool = RetrieverTool(vectordb)\n",
240240
"agent = ToolCallingAgent(\n",
241-
" tools=[retriever_tool], model=model, verbose=True\n",
241+
" tools=[retriever_tool], model=model\n",
242242
")"
243243
]
244244
},

0 commit comments

Comments
 (0)