export_model
Train a model from a dataset or copy a trusted bundle, then save a named local artifact with fitted preprocessing and schema for reproducible predictions.
Instructions
Write a named local model bundle with fitted preprocessing and feature schema for predict. Supply name, target_column, task_type and model_name to train, or pass a trusted existing bundle name as model_handle to copy it. Reusing artifact_name can overwrite a saved bundle.
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": {
"artifact_name": "<artifact_name>"
},
"name": "export_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Dataset filename (to train and export). | |
| stratify | No | Stratify split (classification only). | |
| delimiter | No | CSV delimiter (comma, semicolon, tab, pipe). Auto. | |
| task_type | No | 'classification' or 'regression'. | |
| test_size | No | Test fraction (default 0.2). | |
| model_name | No | Model to train and export. | |
| model_handle | No | Name of a trusted model bundle already saved as an artifact. | |
| random_state | No | Random seed (default 42). | |
| artifact_name | Yes | Name for the saved artifact. | |
| target_column | No | Target variable column. | |
| exclude_columns | No | Feature columns to exclude before preprocessing/training. | |
| split_manifest_id | No | ID of a validated split manifest to enforce indices. |