Update rmrkl/output_parser.py
Browse files- rmrkl/output_parser.py +1 -1
rmrkl/output_parser.py
CHANGED
|
@@ -31,7 +31,7 @@ class ChatZeroShotOutputParser(AgentOutputParser):
|
|
| 31 |
)
|
| 32 |
match = re.search(regex, text, re.DOTALL)
|
| 33 |
if not match:
|
| 34 |
-
raise OutputParserException(f"
|
| 35 |
action = match.group(1).strip()
|
| 36 |
action_input = match.group(2)
|
| 37 |
return AgentAction(action, action_input.strip(" ").strip('"'), text.strip())
|
|
|
|
| 31 |
)
|
| 32 |
match = re.search(regex, text, re.DOTALL)
|
| 33 |
if not match:
|
| 34 |
+
raise OutputParserException(f"{text}")
|
| 35 |
action = match.group(1).strip()
|
| 36 |
action_input = match.group(2)
|
| 37 |
return AgentAction(action, action_input.strip(" ").strip('"'), text.strip())
|