Skip to content

Commit 98075b2

Browse files
fix: default message when action not parsed
1 parent 12a3852 commit 98075b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

balrog/agents/robust_cot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def _extract_final_answer(self, reasoning):
8080
extracted_action = match.group(1).strip()
8181
else:
8282
# Fallback to the entire completion if not matched
83-
extracted_action = completion_text.strip()
83+
extracted_action = "Failed to obtain a valid action from the reasoning."
8484

8585
# Replace the final `completion` with only the extracted action
8686
final_answer = final_answer._replace(completion=extracted_action)

0 commit comments

Comments
 (0)