Skip to main content

DatasetColumnsClient

adaline.datasets.columns manages the column schema of a dataset — add, rename, or delete columns, and resolve dynamic columns whose values are produced by prompts, HTTP requests, or dynamic functions.

Access

The class is also exported directly:
Types from @adaline/api:
Column type can be input, output, metadata, or a dynamic type such as prompt, api, or dynamic-function.

create()

Append one or more column definitions to a dataset. Existing rows get empty values for the new columns.

Parameters

Returns

Promise<AddDatasetColumnsResponse> with { columns: DatasetColumn[] } — the newly added columns with server-assigned IDs.

Example


update()

Change a column’s name, type, or settings.

Returns

Promise<DatasetColumn> — the updated column.

Example


delete()

Delete a column from a dataset. All row values for this column are dropped.

fetchDynamic()

Trigger on-demand resolution for dynamic columns — columns whose values are generated from another prompt, an HTTP endpoint, or a dynamic function. Returns the resolved values without persisting them.

Parameters

Returns

Promise<FetchDynamicColumnsResponse> with { results: Array<{ rowId: string; columnId: string; value: DatasetCellResponse }> }.

Example


See Also