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

# Compute Tool

The Compute tool allows your agent to use a Python code interpreter for tasks such as data analysis, mathematical calculations, and plot generation.

To enable it, pass it through the `tools` option:

```json theme={null}
{
  ...
  "tools": [
    ...
    {
      "type": "compute"
    }
  ]
}
```
