Skip to content

Commit

Permalink
Fix Wolfram Alpha action error reporting.
Browse files Browse the repository at this point in the history
  • Loading branch information
drazvan committed May 30, 2023
1 parent 7e82e4b commit 2375d4b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed the overriding of general instructions [#7](https://github.com/NVIDIA/NeMo-Guardrails/issues/7).
- Fixed action parameters inspection bug [#2](https://github.com/NVIDIA/NeMo-Guardrails/issues/2).
- Fixed bug related to multi-turn flows [#13](https://github.com/NVIDIA/NeMo-Guardrails/issues/13).
- Fixed Wolfram Alpha error reporting in the sample execution rail.

## [0.1.0] - 2023-04-25

Expand Down
8 changes: 8 additions & 0 deletions nemoguardrails/actions/math.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ async def wolfram_alpha_request(
return ActionResult(
return_value=False,
events=[
{
"type": "bot_intent",
"intent": "inform wolfram alpha app id not set",
},
{
"type": "bot_said",
"content": "Wolfram Alpha app ID is not set. Please set the WOLFRAM_ALPHA_APP_ID environment variable.",
Expand All @@ -68,6 +72,10 @@ async def wolfram_alpha_request(
return ActionResult(
return_value=False,
events=[
{
"type": "bot_intent",
"intent": "inform wolfram alpha not working",
},
{
"type": "bot_said",
"content": "Apologies, but I cannot answer this question at this time. I am having trouble getting the answer from Wolfram Alpha.",
Expand Down

0 comments on commit 2375d4b

Please sign in to comment.