Datasets and tasks
Create a Dataset, add labeled examples in TypeScript or Python, and publish a reviewed version.
A Dataset holds examples of a task. For a ticket router, the input is the ticket text and the expected output is its verified queue. In Ponder SDK 1.1, create the Dataset once, then add examples with a stable source event ID. Your application defines or validates the fields inside input and expectedOutput.
import { createPonder } from "ponder-sdk";
const pond = createPonder({ apiKey });
const dataset = await pond.createDataset({
id: "support-tickets",
name: "Support tickets",
});
await pond.dataset(dataset.datasetId).addTask({
id: ticket.resolutionEventId,
name: "Route support ticket",
split: "train",
input: { prompt: ticket.body },
expectedOutput: { queue: ticket.resolvedQueue },
});Creation returns an editable draft. Retrying with the same ID and name returns the original creation receipt. Add holdout examples to a separate Dataset with the frozen_eval split, then publish both Datasets. Pass their IDs to Model setup and Ponder will pin their published versions. Dataset releases and review
Eligible hosted requests automatically collect the input the Model saw and its observed response in the linked Dataset. One completed request, including a streamed response, produces one observation. Use addTask for independently labeled examples, recordAttempt for runs from your own provider or agent, and feedback for later outcomes. Serving and feedback