File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
kaggle_environments/envs/llm_20_questions Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -123,12 +123,14 @@ def interpreter(state, env):
123
123
active1 .observation .category = category
124
124
response = active1 .action
125
125
if not response :
126
+ response = "none"
126
127
active1 .status = "ERROR"
127
128
elif response .lower ().__contains__ ("yes" ):
128
129
response = "yes"
129
130
elif response .lower ().__contains__ ("no" ):
130
131
response = "no"
131
132
else :
133
+ response = "maybe"
132
134
active1 .status = "ERROR"
133
135
active1 .observation .answers .append (response )
134
136
inactive1 .observation .answers .append (response )
@@ -179,12 +181,14 @@ def interpreter(state, env):
179
181
active2 .observation .category = category
180
182
response = active2 .action
181
183
if not response :
184
+ reponse = "none"
182
185
active2 .status = "ERROR"
183
186
elif response .lower ().__contains__ ("yes" ):
184
187
response = "yes"
185
188
elif response .lower ().__contains__ ("no" ):
186
189
response = "no"
187
190
else :
191
+ reponse = "maybe"
188
192
active2 .status = "ERROR"
189
193
active2 .observation .answers .append (response )
190
194
inactive2 .observation .answers .append (response )
You can’t perform that action at this time.
0 commit comments