UNPKG

woolball-client

Version:

Client-side library for Woolball enabling secure browser resource sharing for distributed AI task processing

13 lines (12 loc) 471 B
export type TaskType = 'automatic-speech-recognition' | 'text-to-speech' | 'translation' | 'text-generation' | 'image-text-to-text' | 'char-to-image' | 'html-to-image'; export interface TaskData { input: string; model: string; dtype?: string; provider?: 'transformers' | 'webllm' | 'mediapipe' | 'kokoro' | 'prompt-api'; [key: string]: any; } export type TaskResult = any; export interface TaskProcessor { (data: TaskData): Promise<TaskResult>; }