load_model
Load a model file from a local path, URL, or upload and instantiate the appropriate SHAP explainer for model interpretability. Specify model type; deep models require a background dataset.
Instructions
Load a model file and instantiate the appropriate SHAP explainer.
Note: Prompt the user to provide local filesystem paths on their machine, public URLs, or upload via http://localhost:8765/ui/. Files attached directly in chat are stored in a cloud container (/mnt/user-data/) that local tools cannot reach.
Parameters
model_path : str | None Path to a local .joblib or .pkl model file. model_url : str | None Public URL to download a model file. model_type : str One of 'tree', 'linear', 'deep', 'kernel'. Default is 'tree'. background_path : str | None Path to background CSV dataset (optional for tree/kernel, required for deep).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "load_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model_url | No | ||
| model_path | No | ||
| model_type | No | tree | |
| background_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||