Free-Auto-GPT icon indicating copy to clipboard operation
Free-Auto-GPT copied to clipboard

customAgent.py file error

Open Kashif-Raza6 opened this issue 1 year ago • 0 comments

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'

Kashif-Raza6 avatar May 04 '23 10:05 Kashif-Raza6