UNPKG

@juspay/neurolink

Version:

The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002

23 lines (22 loc) • 629 B
/** * types/workflowTypes.ts * Core type definitions for the Workflow Engine * * Testing Phase: Focuses on original output + evaluation metrics for AB testing */ /** * Workflow execution error class */ export class WorkflowError extends Error { details; constructor(message, details) { super(message); this.name = "WorkflowError"; this.details = details; // Maintain proper stack trace for V8 engines if ("captureStackTrace" in Error && typeof Error.captureStackTrace === "function") { Error.captureStackTrace(this, WorkflowError); } } }