UNPKG

mindstudio

Version:

Client library for MindStudio AI Workers

19 lines (18 loc) 562 B
import { WorkflowResponse, MindStudioWorkers } from "../../types"; type RunFunction = (params: { workerId: string; workflow: string; variables?: Record<string, string>; callbackUrl?: string; progressUrl?: string; }) => Promise<WorkflowResponse<any>>; export declare class WorkerLoader { private runFn; private configManager; constructor(runFn: RunFunction); loadFromConfig(): MindStudioWorkers | undefined; private createWorkerWorkflows; private createWorkerFunctions; private createWorkflowFunction; } export {};