@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
30 lines (29 loc) • 1.24 kB
TypeScript
/**
* workflow/utils/workflowValidation.ts
* Validation utilities for workflow configurations and execution
*/
import type { WorkflowConfig, WorkflowValidationResult } from "../../types/index.js";
/**
* Comprehensive workflow validation
* @param config - Workflow configuration to validate
* @returns Validation result with errors and warnings
*/
export declare function validateWorkflow(config: WorkflowConfig): WorkflowValidationResult;
/**
* Log validation results
* @param workflowId - ID of the workflow being validated
* @param result - Validation result to log
*/
export declare function logValidationResults(workflowId: string, result: WorkflowValidationResult): void;
/**
* Validate workflow at registration time
* @param config - Workflow configuration to validate for registration
* @returns Validation result with registration-specific checks
*/
export declare function validateForRegistration(config: WorkflowConfig): WorkflowValidationResult;
/**
* Validate workflow at execution time
* @param config - Workflow configuration to validate for execution
* @returns Validation result for execution-time checks
*/
export declare function validateForExecution(config: WorkflowConfig): WorkflowValidationResult;