nemoguardrails.actions.math
Module Contents
Functions
Data
API
async
Makes a request to the Wolfram Alpha API.
Parameters:
query
The query for Wolfram Alpha. Defaults to None.
context
The context for the execution of the action. Defaults to None.
Returns:
ActionResult or str: The result of the Wolfram Alpha request.
Raises:
Exception: If no query is provided to Wolfram Alpha.