UNPKG

zon-format

Version:

ZON: The most token-efficient serialization format for LLMs - beats CSV, TOON, JSON, and all competitors

54 lines (53 loc) 1.19 kB
/** * Dataset Management for ZON Evaluations */ import type { Dataset } from './types'; /** * Registry for managing evaluation datasets */ export declare class DatasetRegistry { private datasets; /** * Register a dataset */ register(dataset: Dataset): void; /** * Get a dataset by ID and optional version */ get(id: string, version?: string): Dataset | null; /** * Get all datasets with a specific tag */ getByTag(tag: string): Dataset[]; /** * Get all golden (baseline) datasets */ getGolden(): Dataset[]; /** * List all registered datasets */ list(): Dataset[]; /** * Remove a dataset */ remove(id: string, version: string): boolean; /** * Clear all datasets */ clear(): void; /** * Compare semantic versions */ private compareVersions; } /** * Global dataset registry */ export declare const globalRegistry: DatasetRegistry; /** * Helper to create a dataset */ export declare function createDataset(id: string, version: string, name: string, data: any, questions: any[], options?: { schema?: any; tags?: string[]; }): Dataset;