Save a source's conversations to a dataset
caliper_sources_to_datasetSaves the conversations behind a pick (a day, a tool, a document, failures — the same narrowing as caliper_traces_list) into a new dataset (newDatasetName) or an existing one (datasetId), newest first up to limit. purpose decides what each item keeps: review = the agent's reply, tool calls included, for people to rate; eval = the reply becomes the expected answer; spec = only the questions, for people to answer. Set keepAdding to make it live: new matching conversations keep arriving (every one, or 1 in 10 / 1 in 100), up to 1,000. Then offer the next step — caliper_evals_create, or a review in Caliper. May return needs_confirmation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| day | No | One UTC day, YYYY-MM-DD. | |
| tool | No | Only traces that called this tool. | |
| limit | No | Most recent N, default 100. | |
| purpose | Yes | review | eval | spec. | |
| document | No | Only traces whose lookups hit this document. | |
| sourceId | Yes | Source id, from caliper_sources_list or search_workspace. | |
| datasetId | No | Add to this dataset… | |
| workspace | No | Workspace slug. Personal tokens with no default workspace MUST pass this; tokens with a default can override per call. Ignored for workspace API keys. | |
| approvalId | No | Approval id from a prior needs_confirmation response. Omit on the first call. | |
| errorsOnly | No | Only failed traces. | |
| keepAdding | No | Keep adding new matches as they arrive, taking one in this many (1 = every one). | |
| newDatasetName | No | …or start one with this name. |