IntelligenzaArtificiale / Free-Auto-GPT

Free Auto GPT with NO paids API is a repository that offers a simple version of Auto GPT, an autonomous AI agent capable of performing tasks independently. Unlike other versions, our implementation does not rely on any paid OpenAI API, making it accessible to anyone.
MIT License
2.44k stars 383 forks source link

customAgent.py file error #64

Closed Kashif-Raza6 closed 1 year ago

Kashif-Raza6 commented 1 year ago

Running error with customAgent.py file

Traceback (most recent call last): File "C:\Users\kashif.raza\OneDrive - Higher Education Commission (1)\1_Projects\Free-AUTO-GPT-with-NO-API\OtherAgent\customAgent.py", line 110, in <module> zero_shot_agent = initialize_agent( File "C:\Users\kashif.raza\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\agents\initialize.py", line 64, in initialize_agent return AgentExecutor.from_agent_and_tools( File "C:\Users\kashif.raza\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\agents\agent.py", line 557, in from_agent_and_tools return cls( File "pydantic\main.py", line 339, in pydantic.main.BaseModel.__init__ File "pydantic\main.py", line 1064, in pydantic.main.validate_model File "C:\Users\kashif.raza\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\agents\agent.py", line 565, in validate_tools tools = values["tools"] KeyError: 'tools'

IntelligenzaArtificiale commented 1 year ago

try to redowload last update repository. Run 'pip install -U langchain' and try to restart CustomAgent.py