Skip to content

Commit 9c3a607

Browse files
Merge pull request #8 from asappresearch/golden_agent
Golden agent
2 parents 1f6adf8 + b7d6e38 commit 9c3a607

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

josh_train/async_josh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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:

josh_train/josh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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",

0 commit comments

Comments
 (0)