openllmetry-js icon indicating copy to clipboard operation
openllmetry-js copied to clipboard

feat: add dataset api

Open galzilber opened this issue 4 months ago • 3 comments

[!IMPORTANT] Introduces a comprehensive dataset management API to the SDK, including dataset creation, updating, deletion, versioning, and extensive testing.

  • Behavior:
    • Adds dataset management API with create, list, find, update, delete, and publish functionalities in base-dataset.ts, dataset.ts, and datasets.ts.
    • Supports column and row management, CSV import, and versioning.
    • Responses are camelCase-normalized using response-transformer.ts.
  • SDK Changes:
    • Exposes dataset management via TraceloopClient in traceloop-client.ts.
    • Adds Datasets, Dataset, Column, and Row classes for dataset operations.
  • Tests:
    • Comprehensive end-to-end tests in datasets-comprehensive.test.ts and datasets-final.test.ts.
    • Tests cover dataset creation, column and row operations, CSV import, and error handling.

This description was created by Ellipsis for a65b2b95c480fd1d0039dc54d19afb3e43864085. You can customize this summary. It will automatically update as commits are pushed.


Summary by CodeRabbit

  • New Features

    • Full dataset management in the SDK: create/list/find/update/delete/publish datasets; manage columns & rows; CSV import, stats, versioning, and camelCase-normalized responses. SDK exposes a public datasets API and accepts an optional projectId.
  • New Scripts / Sample App

    • Sample app demonstrating dataset lifecycle and a test script; npm commands added to build & run these demos/tests.
  • Tests

    • Added comprehensive end-to-end Dataset API test suites and recorded HTTP sessions.

galzilber avatar Aug 06 '25 09:08 galzilber