UNPKG

@juspay/neurolink

Version:

Universal AI Development Platform with working MCP integration, multi-provider support, and professional CLI. Built-in tools operational, 58+ external MCP servers discoverable. Connect to filesystem, GitHub, database operations, and more. Build, test, and

74 lines (73 loc) 2.45 kB
/** * Configuration management for Amazon SageMaker Provider * * This module handles loading, validation, and management of SageMaker * configuration from environment variables, files, and defaults. */ import type { SageMakerConfig, SageMakerModelConfig } from "./types.js"; /** * Load and validate SageMaker configuration from environment variables * * Environment variable priority: * 1. SAGEMAKER_* variables (highest priority) * 2. AWS_* variables (standard AWS SDK variables) * 3. Default values (lowest priority) * * @returns Validated SageMaker configuration * @throws {Error} When required configuration is missing or invalid */ export declare function getSageMakerConfig(): SageMakerConfig; /** * Load and validate SageMaker model configuration * * @param endpointName - Name of the SageMaker endpoint * @returns Validated model configuration */ export declare function getSageMakerModelConfig(endpointName?: string): SageMakerModelConfig; /** * Get the default SageMaker endpoint name from environment variables * * @returns Default endpoint name */ export declare function getDefaultSageMakerEndpoint(): string; /** * Get SageMaker model name from environment variables * * @returns Model name */ export declare function getSageMakerModel(): string; /** * Validate AWS credentials are properly configured * * @param config - SageMaker configuration to validate * @returns true if credentials are valid * @throws {Error} When credentials are missing or invalid */ export declare function validateAWSCredentials(config: SageMakerConfig): boolean; /** * Create a comprehensive configuration summary for debugging * * @returns Configuration summary (sensitive data masked) */ export declare function getConfigurationSummary(): Record<string, unknown>; /** * Clear configuration cache (useful for testing or credential rotation) */ export declare function clearConfigurationCache(): void; /** * Load configuration from a JSON file (alternative to environment variables) * * @param filePath - Path to configuration JSON file * @returns Loaded configuration */ export declare function loadConfigurationFromFile(filePath: string): Promise<SageMakerConfig>; /** * Check if SageMaker provider is properly configured * * @returns Configuration check result */ export declare function checkSageMakerConfiguration(): { configured: boolean; issues: string[]; summary: Record<string, unknown>; };