Skip to content

Commit 2375d4b

Browse files
committed
Fix Wolfram Alpha action error reporting.
1 parent 7e82e4b commit 2375d4b

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2626
- Fixed the overriding of general instructions [#7](https://github.com/NVIDIA/NeMo-Guardrails/issues/7).
2727
- Fixed action parameters inspection bug [#2](https://github.com/NVIDIA/NeMo-Guardrails/issues/2).
2828
- Fixed bug related to multi-turn flows [#13](https://github.com/NVIDIA/NeMo-Guardrails/issues/13).
29+
- Fixed Wolfram Alpha error reporting in the sample execution rail.
2930

3031
## [0.1.0] - 2023-04-25
3132

nemoguardrails/actions/math.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ async def wolfram_alpha_request(
4949
return ActionResult(
5050
return_value=False,
5151
events=[
52+
{
53+
"type": "bot_intent",
54+
"intent": "inform wolfram alpha app id not set",
55+
},
5256
{
5357
"type": "bot_said",
5458
"content": "Wolfram Alpha app ID is not set. Please set the WOLFRAM_ALPHA_APP_ID environment variable.",
@@ -68,6 +72,10 @@ async def wolfram_alpha_request(
6872
return ActionResult(
6973
return_value=False,
7074
events=[
75+
{
76+
"type": "bot_intent",
77+
"intent": "inform wolfram alpha not working",
78+
},
7179
{
7280
"type": "bot_said",
7381
"content": "Apologies, but I cannot answer this question at this time. I am having trouble getting the answer from Wolfram Alpha.",

0 commit comments

Comments
 (0)