import { APIResource } from '../../core/resource.js'; import * as ExamplesAPI from './examples.js'; import { APIPromise } from '../../core/api-promise.js'; import { RequestOptions } from '../../internal/request-options.js'; export declare class Bulk extends APIResource { /** * Create bulk examples. */ create(params: BulkCreateParams, options?: RequestOptions): APIPromise; /** * Legacy update examples in bulk. For update involving attachments, use PATCH * /v1/platform/datasets/{dataset_id}/examples instead. */ patchAll(params: BulkPatchAllParams, options?: RequestOptions): APIPromise; } export type BulkCreateResponse = Array; export type BulkPatchAllResponse = unknown; export interface BulkCreateParams { /** * Schema for a batch of examples to be created. */ body: Array; } export declare namespace BulkCreateParams { /** * Example with optional created_at to prevent duplicate versions in bulk * operations. */ interface Body { dataset_id: string; id?: string | null; created_at?: string | null; inputs?: { [key: string]: unknown; } | null; metadata?: { [key: string]: unknown; } | null; outputs?: { [key: string]: unknown; } | null; source_run_id?: string | null; split?: Array | string | null; /** * Use Legacy Message Format for LLM runs */ use_legacy_message_format?: boolean; use_source_run_attachments?: Array; use_source_run_io?: boolean; } } export interface BulkPatchAllParams { body: Array; } export declare namespace BulkPatchAllParams { /** * Bulk update class for Example (includes example id). */ interface Body { id: string; attachments_operations?: ExamplesAPI.AttachmentsOperations | null; dataset_id?: string | null; inputs?: { [key: string]: unknown; } | null; metadata?: { [key: string]: unknown; } | null; outputs?: { [key: string]: unknown; } | null; overwrite?: boolean; split?: Array | string | null; } } export declare namespace Bulk { export { type BulkCreateResponse as BulkCreateResponse, type BulkPatchAllResponse as BulkPatchAllResponse, type BulkCreateParams as BulkCreateParams, type BulkPatchAllParams as BulkPatchAllParams, }; }