llm-json-fix
Version:
Fix malformed JSON outputs from Large Language Models (LLMs)
31 lines • 1.04 kB
TypeScript
/**
* Custom error thrown by the LLM JSON Fix library
*/
export declare class LLMJSONFixError extends Error {
readonly position?: number | undefined;
/**
* Create a new LLMJSONFixError
* @param message The error message
* @param position The position in the text where the error occurred (if available)
*/
constructor(message: string, position?: number | undefined);
}
/**
* Error thrown when a repair operation could not be completed
*/
export declare class UnrepairableJSONError extends LLMJSONFixError {
constructor(message: string, position?: number);
}
/**
* Error thrown when the input JSON is too complex or ambiguous to be repaired
*/
export declare class AmbiguousRepairError extends LLMJSONFixError {
constructor(message: string, position?: number);
}
/**
* Error thrown when repair operation exceeds buffer limits
*/
export declare class BufferLimitExceededError extends LLMJSONFixError {
constructor(message: string, position?: number);
}
//# sourceMappingURL=errors.d.ts.map