export_model
Saves a trained model together with its preprocessing pipeline and metadata as a reusable artifact for later predictions.
Instructions
Save a trained model with preprocessing pipeline and metadata.
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). | |
| 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 | Handle of a previously trained model. | |
| random_state | No | Random seed (default 42). | |
| artifact_name | Yes | Name for the saved artifact. | |
| target_column | No | Target variable column. |