agent-zero
agent-zero copied to clipboard
Error when trying to do web scaping with open models.
Hello,
I've run into a consisstnt error, when I tell the agent to scape a website, using many different models (not closed source, yet open-source vision or non-vision models) it seems to never succeed. It comes back with the following error:
Error
Text | 'NoneType' object has no attribute 'strip' -- | --Traceback (most recent call last):
Traceback (most recent call last):
File "/a0/agent.py", line 364, in monologue
tools_result = await self.process_tools(agent_response)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/a0/agent.py", line 749, in process_tools
await tool.after_execution(response)
File "/a0/python/helpers/tool.py", line 36, in after_execution
text = response.message.strip()
^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'strip'
AttributeError: 'NoneType' object has no attribute 'strip'
Error
Text
'NoneType' object has no attribute 'strip'
Copy
Traceback (most recent call last):
Traceback (most recent call last):
File "/[a0](http://agentzero/#)/[agent.py](http://agentzero/#)", line 364, in monologue
tools_result = await self.process_tools(agent_response)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/[a0](http://agentzero/#)/[agent.py](http://agentzero/#)", line 749, in process_tools
await tool.after_execution(response)
File "/[a0](http://agentzero/#)/[python](http://agentzero/#)/[helpers](http://agentzero/#)/[tool.py](http://agentzero/#)", line 36, in after_execution
text = response.message.strip()
^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'strip'
AttributeError: 'NoneType' object has no attribute 'strip'
I'm, not quite sure how to work around this, I tend to avoid the commercial models in favor of self-hosted or less expensive large open-source models, therefore this may be contributing to my challenges, however, it's not an uncommon use case. I'd appreciate you looking into it.
Thanks so much!