File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ async def step_agent(self):
107107 print (f'🌟 Got reward' )
108108 collapse_root_to = unfinished_leaves [idx ]
109109 rewards_to_delete = copy .deepcopy (rw_to_delete )
110- if len (self .rewards )== 1 :
110+ if len (self .rewards )- len ( rewards_to_delete ) == 0 :
111111 self .golden_agent = turn .agent
112112
113113 if count + 1 == self .max_turn_tries and not turn_finished :
Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ def step_agent(self):
198198 print (f'🌟 Got reward' )
199199 collapse_root_to = unfinished_leaves [idx ]
200200 rewards_to_delete = copy .deepcopy (rw_to_delete )
201- if len (self .rewards )== 1 :
201+ if len (self .rewards )- len ( rewards_to_delete ) == 0 :
202202 self .golden_agent = turn .agent
203203
204204 if count + 1 == self .max_turn_tries :
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ def get_requires(requires_filename: str) -> List[str]:
2525 install_requires = get_requires ("requirements.txt" ),
2626 include_package_data = True ,
2727 setup_requires = ["setuptools_scm" ],
28- version = "0.1.3 " ,
28+ version = "0.1.4 " ,
2929 classifiers = [
3030 "Programming Language :: Python :: 3" ,
3131 "License :: OSI Approved :: MIT License" ,
You can’t perform that action at this time.
0 commit comments