Skip to main content

WolframAlphaAPIWrapper

Wrapper for Wolfram Alpha.
Docs for using:
1. Go to wolfram alpha and sign up for a developer account 2. Create an app and get your APP ID 3. Save your APP ID into WOLFRAM_ALPHA_APPID env variable 4. pip install wolframalpha
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
Parameters:

Class Attributes

model_config



wolfram_alpha_appid



wolfram_client


:meta private:

Static Methods

validate_environment

Validate that api key and python package exists in environment. Parameters:

Instance Methods

run

Run query through WolframAlpha and parse result. Parameters: