openllmetry-js
openllmetry-js copied to clipboard
feat: add dataset api
[!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, anddatasets.ts.- Supports column and row management, CSV import, and versioning.
- Responses are camelCase-normalized using
response-transformer.ts.- SDK Changes:
- Exposes dataset management via
TraceloopClientintraceloop-client.ts.- Adds
Datasets,Dataset,Column, andRowclasses for dataset operations.- Tests:
- Comprehensive end-to-end tests in
datasets-comprehensive.test.tsanddatasets-final.test.ts.- Tests cover dataset creation, column and row operations, CSV import, and error handling.
This description was created by
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.