> ## Documentation Index
> Fetch the complete documentation index at: https://docs.camel-ai.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Camel.toolkits.wolfram alpha toolkit

<a id="camel.toolkits.wolfram_alpha_toolkit" />

<a id="camel.toolkits.wolfram_alpha_toolkit.WolframAlphaToolkit" />

## WolframAlphaToolkit

```python theme={"system"}
class WolframAlphaToolkit(BaseToolkit):
```

A class representing a toolkit for WolframAlpha.

Wolfram|Alpha is an answer engine developed by Wolfram Research.
It is offered as an online service that answers factual queries
by computing answers from externally sourced data.

<a id="camel.toolkits.wolfram_alpha_toolkit.WolframAlphaToolkit.query_wolfram_alpha" />

### query\_wolfram\_alpha

```python theme={"system"}
def query_wolfram_alpha(self, query: str):
```

Queries Wolfram|Alpha and returns the result as a simple answer.

**Parameters:**

* **query** (str): The query to send to Wolfram Alpha.

**Returns:**

str: The result from Wolfram Alpha as a simple answer.

<a id="camel.toolkits.wolfram_alpha_toolkit.WolframAlphaToolkit.query_wolfram_alpha_step_by_step" />

### query\_wolfram\_alpha\_step\_by\_step

```python theme={"system"}
def query_wolfram_alpha_step_by_step(self, query: str):
```

Queries Wolfram|Alpha and returns detailed results with
step-by-step solution.

**Parameters:**

* **query** (str): The query to send to Wolfram Alpha.

**Returns:**

Dict\[str, Any]: A dictionary with detailed information including
step-by-step solution.

<a id="camel.toolkits.wolfram_alpha_toolkit.WolframAlphaToolkit.query_wolfram_alpha_llm" />

### query\_wolfram\_alpha\_llm

```python theme={"system"}
def query_wolfram_alpha_llm(self, query: str):
```

Sends a query to the Wolfram|Alpha API optimized for language
model usage.

**Parameters:**

* **query** (str): The query to send to Wolfram Alpha LLM.

**Returns:**

str: The result from Wolfram Alpha as a string.

<a id="camel.toolkits.wolfram_alpha_toolkit.WolframAlphaToolkit._parse_wolfram_result" />

### \_parse\_wolfram\_result

```python theme={"system"}
def _parse_wolfram_result(self, result):
```

Parses a Wolfram Alpha API result into a structured dictionary
format.

**Parameters:**

* **result**: The API result returned from a Wolfram Alpha query, structured with multiple pods, each containing specific information related to the query.

**Returns:**

Dict\[str, Any]: A structured dictionary with the original query
and the final answer.

<a id="camel.toolkits.wolfram_alpha_toolkit.WolframAlphaToolkit._get_wolframalpha_step_by_step_solution" />

### \_get\_wolframalpha\_step\_by\_step\_solution

```python theme={"system"}
def _get_wolframalpha_step_by_step_solution(self, app_id: str, query: str):
```

Retrieve a step-by-step solution from the Wolfram Alpha API for a
given query.

**Parameters:**

* **app\_id** (str): Your Wolfram Alpha API application ID.
* **query** (str): The mathematical or computational query to solve.

**Returns:**

dict: The step-by-step solution response text from the Wolfram
Alpha API.

<a id="camel.toolkits.wolfram_alpha_toolkit.WolframAlphaToolkit.get_tools" />

### get\_tools

```python theme={"system"}
def get_tools(self):
```

**Returns:**

List\[FunctionTool]: A list of FunctionTool objects
representing the functions in the toolkit.
