@iqai/adk-cli
Version:
CLI tool for creating, running, and testing ADK-TS agents
31 lines • 998 B
TypeScript
import { Logger } from "@nestjs/common";
export declare class ErrorHandlingUtils {
private logger;
constructor(logger: Logger);
isMissingEnvError(error: unknown): {
isMissing: boolean;
varName?: string;
allMissing?: string[];
requiredMissing?: string[];
optionalMissing?: string[];
hasOnlyOptionalMissing?: boolean;
};
handleImportError(error: unknown, outFile: string, projectRoot: string): Promise<Record<string, unknown>>;
/**
* Formats Zod or runtime errors into a human-readable string
*/
formatUserError(error: unknown): string;
/**
* Categorize error for console output with helpful suggestions
*/
private categorizeErrorForConsole;
/**
* Clean up error messages by removing redundant prefixes
*/
private cleanErrorMessage;
/**
* Extract module name from error message
*/
private extractModuleName;
}
//# sourceMappingURL=error-handling-utils.d.ts.map