Wolfram Alpha Tool
This tool connects to Wolfram|Alpha's LLM API, which returns responses optimized for language model consumption.
You will need to provide an API key: https://products.wolframalpha.com/api
Usage
This tool has more extensive example usage documented in a Jupyter notebook here
Here's an example usage of the WolframAlphaToolSpec.
from llama_index.tools.wolfram_alpha import WolframAlphaToolSpec
from llama_index.agent.core.agent import FunctionAgent
from llama_index.llms.openai import OpenAI
wolfram_spec = WolframAlphaToolSpec(app_id="API-key")
agent = FunctionAgent(
tools=wolfram_spec.to_tool_list(),
llm=OpenAI(model="gpt-4.1"),
)
print(await agent.run("how many calories are in 100g of milk chocolate"))
print(await agent.run("what is the mass of the helium in the sun"))
API Parameters
You can pass additional parameters to the Wolfram|Alpha LLM API:
wolfram_spec = WolframAlphaToolSpec(
app_id="API-key",
api_params={
"maxchars": 2048, # Maximum characters in response
"units": "metric", # Unit system preference
},
)
See the Wolfram|Alpha LLM API documentation for available parameters.
wolfram_alpha_query: Get the result of a query from Wolfram Alpha
This loader is designed to be used as a way to load data as a Tool in a Agent.
Metadata
Release files for llama-index-tools-wolfram-alpha 0.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| llama_index_tools_wolfram_alpha-0.7.0.tar.gz | 5.1 kB | Without provenance | Details for llama_index_tools_wolfram_alpha-0.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llama_index_tools_wolfram_alpha-0.7.0-py3-none-any.whl | Python 3 | none | any | Details for llama_index_tools_wolfram_alpha-0.7.0-py3-none-any.whl |
Total release size: 9.9 kB
Release files / llama_index_tools_wolfram_alpha-0.7.0.tar.gz
| Download URL | llama_index_tools_wolfram_alpha-0.7.0.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
abbf4c4017491512ed779044c5a019a6bdcfc14fbf9951c395db244bca68cdec
|
|
BLAKE2b-256 checksum How to use checksums |
5e5cbebca4b392a559aca7c2e614b320848eb1c1892e642f7a1fb2c76cbc0cde
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / llama_index_tools_wolfram_alpha-0.7.0-py3-none-any.whl
| Download URL | llama_index_tools_wolfram_alpha-0.7.0-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5beed31a54052470721b534f8772fe8cc3443ec7a953f4ee4c5e08cf5492245b
|
|
BLAKE2b-256 checksum How to use checksums |
54a1982d6506ff5be12c277e1f7e42459b8f43712d57079bf9d862d37f502ecf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for llama-index-tools-wolfram-alpha 0.7.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.