kyegomez / tree-of-thoughts

Plug in and Play Implementation of Tree of Thoughts: Deliberate Problem Solving with Large Language Models that Elevates Model Reasoning by atleast 70%
https://discord.gg/qUtxnK2NMf
Apache License 2.0
4.18k stars 353 forks source link

TypeError: initialize_agent() missing 1 required positional argument: 'tools' #14

Closed ValenteMendez closed 1 year ago

ValenteMendez commented 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'

kyegomez commented 1 year ago

I think i fixed it! Download the latest version again and try pls