UNPKG

@juspay/neurolink

Version:

Universal AI Development Platform with external MCP server integration, multi-provider support, and professional CLI. Connect to 65+ MCP servers for filesystem, GitHub, database operations, and more. Build, test, and deploy AI applications with 9 major pr

54 lines (53 loc) 1.68 kB
/** * NeuroLink - Unified AI Interface * * Simple wrapper around the AI provider system to provide a clean API * for CLI and other consumers. */ import type { AIProviderName } from './core/types.js'; export interface TextGenerationOptions { prompt: string; provider?: 'openai' | 'bedrock' | 'vertex' | 'anthropic' | 'azure' | 'google-ai' | 'huggingface' | 'ollama' | 'mistral' | 'auto'; temperature?: number; maxTokens?: number; systemPrompt?: string; schema?: any; } export interface StreamTextOptions { prompt: string; provider?: 'openai' | 'bedrock' | 'vertex' | 'anthropic' | 'azure' | 'google-ai' | 'huggingface' | 'ollama' | 'mistral' | 'auto'; temperature?: number; maxTokens?: number; systemPrompt?: string; } export interface TextGenerationResult { content: string; provider?: string; model?: string; usage?: { promptTokens?: number; completionTokens?: number; totalTokens?: number; }; responseTime?: number; } export declare class NeuroLink { /** * Generate text using the best available AI provider with automatic fallback */ generateText(options: TextGenerationOptions): Promise<TextGenerationResult>; /** * Generate streaming text using the best available AI provider with automatic fallback */ generateTextStream(options: StreamTextOptions): Promise<AsyncIterable<{ content: string; }>>; /** * Get the best available AI provider */ getBestProvider(): Promise<string>; /** * Test a specific provider */ testProvider(providerName: AIProviderName, testPrompt?: string): Promise<boolean>; }