aorwall / moatless-tools

MIT License
216 stars 20 forks source link

Example notebook not working #7

Closed kwikiel closed 2 months ago

kwikiel commented 2 months ago

TypeError Traceback (most recent call last) Cell In[2], line 4 1 from moatless.loop import SearchLoop 3 instructions = "improve the website app design" ----> 4 search_loop = SearchLoop(workspace, instructions=instructions) 5 search_response = search_loop.execute() 7 for file in search_response.files:

File ~/Repos/moatless-tools/moatless/loop/search.py:165, in SearchLoop.init(self, workspace, instructions, trajectory, do_initial_search, max_context_size, token_decay_rate, combined_function, support_test_files, kwargs) 153 def init( 154 self, 155 workspace: Workspace, (...) 163 kwargs, 164 ): --> 165 super().init(trajectory=trajectory, **kwargs) 167 # TODO: Move all instance vars to pydantic fields and private attrs 168 self._workspace = workspace

TypeError: Loop.init() got an unexpected keyword argument 'trajectory'

aorwall commented 2 months ago

I refactored the project quite a bit the last days. Updated the notebook so you can try again now.