Fix lazy init websurfer (#4178)

* lazy init set

* format
This commit is contained in:
Hussein Mozannar 2024-11-13 20:19:48 -08:00 committed by GitHub
parent a27a130b45
commit 36b822cf8b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -265,6 +265,7 @@ class MultimodalWebSurfer(BaseChatAgent):
# Prepare the debug directory -- which stores the screenshots generated throughout the process
await self._set_debug_dir(self.debug_dir)
self.did_lazy_init = True
async def _set_debug_dir(self, debug_dir: str | None) -> None:
assert self._page is not None