AxModelFitter_execute_code
Execute Python code in a sandboxed environment with JAX and model fitting libraries, using export() to return results. Use for running generated or custom model fitting code.
Instructions
Execute Python code in a sandboxed environment with JAX (jnp), diffrax, equinox, and the ax_core.model_fitter library available. Code must call export(name, value) at least once to return results. Typically used to run code produced by generate_code, but also accepts hand-written or modified code.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>"
},
"name": "AxModelFitter_execute_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Python code to execute. Must call export(name, value) to return results. |