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

105 lines (104 loc) 4.32 kB
/** * NeuroLink AI Toolkit * * A unified AI provider interface with support for multiple providers, * automatic fallback, streaming, and tool integration. * * Provides comprehensive AI functionality with proven patterns. */ import { AIProviderFactory } from "./core/factory.js"; export { AIProviderFactory }; export type { AIProvider, AIProviderName, ProviderConfig, StreamingOptions, ProviderAttempt, SupportedModelName, } from "./core/types.js"; export type { GenerateOptions, GenerateResult, EnhancedProvider, } from "./types/generateTypes.js"; export type { ToolContext } from "./sdk/toolRegistration.js"; export { validateTool } from "./sdk/toolRegistration.js"; export type { ToolResult, ToolDefinition } from "./types/tools.js"; export { BedrockModels, OpenAIModels, VertexModels, DEFAULT_PROVIDER_CONFIGS, } from "./core/types.js"; export { getBestProvider, getAvailableProviders, isValidProvider, } from "./utils/providerUtils.js"; export { NeuroLink } from "./neurolink.js"; export type { ProviderStatus, MCPStatus } from "./neurolink.js"; export type { MCPServerInfo } from "./types/mcpTypes.js"; export type { NeuroLinkMiddleware, MiddlewareContext, MiddlewareFactoryOptions, } from "./middleware/types.js"; export { MiddlewareRegistry, MiddlewareFactory } from "./middleware/index.js"; export { createAnalyticsMiddleware } from "./middleware/builtin/analytics.js"; export declare const VERSION = "1.0.0"; /** * Quick start factory function * * @example * ```typescript * import { createAIProvider } from '@juspay/neurolink'; * * const provider = await createAIProvider('bedrock'); * const result = await provider.stream({ input: { text: 'Hello, AI!' } }); * ``` */ export declare function createAIProvider(providerName?: string, modelName?: string): Promise<import("./core/types.js").AIProvider>; /** * Create provider with automatic fallback * * @example * ```typescript * import { createAIProviderWithFallback } from '@juspay/neurolink'; * * const { primary, fallback } = await createAIProviderWithFallback('bedrock', 'vertex'); * ``` */ export declare function createAIProviderWithFallback(primaryProvider?: string, fallbackProvider?: string, modelName?: string): Promise<import("./types/typeAliases.js").ProviderPairResult<import("./core/types.js").AIProvider>>; /** * Create the best available provider based on configuration * * @example * ```typescript * import { createBestAIProvider } from '@juspay/neurolink'; * * const provider = await createBestAIProvider(); * ``` */ export declare function createBestAIProvider(requestedProvider?: string, modelName?: string): Promise<import("./core/types.js").AIProvider>; /** * MCP (Model Context Protocol) Plugin Ecosystem * * Extensible plugin architecture based on research blueprint for * transforming NeuroLink into a Universal AI Development Platform. * * @example * ```typescript * import { mcpEcosystem, readFile, writeFile } from '@juspay/neurolink'; * * // Initialize the ecosystem * await mcpEcosystem.initialize(); * * // List available plugins * const plugins = await mcpEcosystem.list(); * * // Use filesystem operations * const content = await readFile('README.md'); * await writeFile('output.txt', 'Hello from MCP!'); * ``` */ export { initializeMCPEcosystem, listMCPs, executeMCP, getMCPStats, mcpLogger, } from "./mcp/index.js"; export type { McpMetadata, ExecutionContext, DiscoveredMcp, ToolInfo, ToolExecutionResult, LogLevel, } from "./mcp/index.js"; export declare function initializeTelemetry(): Promise<boolean>; export declare function getTelemetryStatus(): { enabled: boolean; initialized: boolean; }; export type { TextGenerationOptions, TextGenerationResult, AnalyticsData, EvaluationData, } from "./core/types.js"; /** * BACKWARD COMPATIBILITY: Legacy generateText function * Provides standalone generateText function for existing code that uses it * * @example * ```typescript * import { generateText } from '@juspay/neurolink'; * * const result = await generateText({ * prompt: 'Hello, AI!', * provider: 'bedrock', * model: 'claude-3-sonnet' * }); * console.log(result.content); * ``` */ export declare function generateText(options: import("./core/types.js").TextGenerationOptions): Promise<import("./core/types.js").TextGenerationResult>;