Closed ValenteMendez closed 1 year ago
Hi, thank you for this! Question, I keep getting this mistake, any idea of how to fix it?
(base) .../tree-of-thoughts/example.py Traceback (most recent call last): File ".../tree-of-thoughts/example.py", line 13, in model = LangchainCustomLanguageModel(api_key=api_key) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File ".../tree-of-thoughts/example.py", line 50, in init self.agent = initialize_agent(llm=model, agent=AgentType.REACT_DOCSTORE, verbose=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: initialize_agent() missing 1 required positional argument: 'tools'
I think i fixed it! Download the latest version again and try pls
Hi, thank you for this! Question, I keep getting this mistake, any idea of how to fix it?
(base) .../tree-of-thoughts/example.py Traceback (most recent call last): File ".../tree-of-thoughts/example.py", line 13, in
model = LangchainCustomLanguageModel(api_key=api_key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../tree-of-thoughts/example.py", line 50, in init
self.agent = initialize_agent(llm=model, agent=AgentType.REACT_DOCSTORE, verbose=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: initialize_agent() missing 1 required positional argument: 'tools'