Compute tool

The Compute tool allows the advanced 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:

1{
2 "agent": "advanced",
3 "input": "...",
4 "stream": true,
5 "tools": [
6 {
7 "type": "compute"
8 }
9 ]
10}

See the tools request parameter in the Advanced API Reference for details.