UNPKG

@juspay/neurolink

Version:

Universal AI Development Platform with working MCP integration, multi-provider support, voice (TTS/STT/realtime), and professional CLI. 58+ external MCP servers discoverable, multimodal file processing, RAG pipelines. Build, test, and deploy AI applicatio

56 lines (55 loc) 1.83 kB
/** * Task Classification Utility Functions * Helper functions for analyzing prompts and calculating scores */ import type { ClassificationScores } from "../types/index.js"; /** * Analyze prompt length and apply scoring bonuses */ export declare function analyzeLengthFactors(prompt: string, reasons: string[]): { fastScore: number; reasoningScore: number; }; /** * Check prompt against fast task patterns */ export declare function checkFastPatterns(normalizedPrompt: string, reasons: string[]): number; /** * Check prompt against reasoning task patterns */ export declare function checkReasoningPatterns(normalizedPrompt: string, reasons: string[]): number; /** * Analyze keyword matches in the prompt */ export declare function analyzeKeywords(normalizedPrompt: string, reasons: string[]): { fastScore: number; reasoningScore: number; }; /** * Analyze question complexity */ export declare function analyzeQuestionComplexity(prompt: string, reasons: string[]): number; /** * Analyze prompt structure and punctuation */ export declare function analyzePromptStructure(prompt: string, reasons: string[]): number; /** * Analyze domain-specific indicators */ export declare function analyzeDomainIndicators(normalizedPrompt: string, prompt: string, reasons: string[]): { fastScore: number; reasoningScore: number; }; /** * Calculate final confidence score */ export declare function calculateConfidence(fastScore: number, reasoningScore: number): number; /** * Determine task type based on scores */ export declare function determineTaskType(fastScore: number, reasoningScore: number): "fast" | "reasoning"; /** * Comprehensive prompt analysis * Runs all analysis functions and returns combined scores */ export declare function analyzePrompt(prompt: string): ClassificationScores;