Dataset registration.
Functions
execute_upload_data(**kwargs) -> Dict[str, Any]
Register a dataset file or inline content for use with other tools.
Backs the
tuiml_upload_data tool. The dataset is copied into ~/.tuiml/uploads/, validated by loading it, and indexed under a stable dataset_id so later tools can reference it by name.Parameters
file_path
str
= None
Path to a data file on disk (CSV, TSV, ARFF, Parquet, JSON, Excel, NPY/NPZ). One of
file_path / content is required (both arrive via **kwargs, like all parameters below).
content
str
= None
Inline dataset text (e.g. CSV content) written to a new file.
name
str
= None
Name to register the dataset under; defaults to the file's basename or an auto-generated id for inline content.
format
str
= 'csv'
File extension to use in content mode.
Returns
result
dict
On success:
status ('success'), dataset_id, file_path, rows, features, feature_names and message. On failure: status ('error'), error, error_type and optionally suggestion.