@juspay/neurolink
Version:
Universal AI Development Platform with working MCP integration, multi-provider support, voice (TTS/STT/realtime), and professional CLI. 58+ external MCP servers discoverable, multimodal file processing, RAG pipelines. Build, test, and deploy AI applicatio
39 lines (38 loc) • 1.41 kB
TypeScript
/**
* HITL (Human-in-the-Loop) Error Classes
*
* Provides structured error handling for HITL safety mechanisms.
* These errors allow applications to distinguish between different
* types of HITL failures and handle them appropriately.
*/
/**
* Base class for all HITL-related errors
*/
export declare class HITLError extends Error {
readonly confirmationId?: string | undefined;
constructor(message: string, confirmationId?: string | undefined);
}
/**
* Thrown when a user explicitly rejects a tool execution request
* This indicates the HITL system worked correctly - the user saw the request
* and made a conscious decision to deny it.
*/
export declare class HITLUserRejectedError extends HITLError {
readonly toolName: string;
readonly reason?: string | undefined;
constructor(message: string, toolName: string, reason?: string | undefined, confirmationId?: string);
}
/**
* Thrown when a confirmation request times out without user response
* This indicates the user didn't respond within the configured timeout period.
*/
export declare class HITLTimeoutError extends HITLError {
readonly timeout: number;
constructor(message: string, confirmationId: string, timeout: number);
}
/**
* Thrown when HITL configuration is invalid or missing required properties
*/
export declare class HITLConfigurationError extends HITLError {
constructor(message: string);
}