File size: 1,121 Bytes
e67043b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Query Wolframalpha Service

Contributor [Shengding Hu](https://github.com/shengdinghu)

You can get the API keys from https://products.wolframalpha.com/api/

# Wolfram Tool

This tool provides dynamic computation and curated data from WolframAlpha and Wolfram Cloud.

## Setup

The tool is initialized with the following parameters:

- **name_for_model**: "Wolfram"
- **description_for_model**: "Dynamic computation and curated data from WolframAlpha and Wolfram Cloud."
- **logo_url**: "https://www.wolframcdn.com/images/icons/Wolfram.png"
- **contact_email**: "[email protected]"
- **legal_info_url**: "[email protected]"

## Endpoint

The tool provides the following endpoint:

- **/getWolframAlphaResults**: Get Wolfram|Alpha results using a natural query.

## Function Description

- **getWolframAlphaResults(input: str) -> dict**: This function gets Wolfram|Alpha results using a natural query. The input should be a string. The function returns a dictionary containing the results. Note that queries to getWolframAlphaResults must ALWAYS have this structure: {"input": query}. Please directly read the output JSON.