@juspay/neurolink
Version:
The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002
24 lines (23 loc) • 874 B
TypeScript
/**
* Binary Task Classifier for NeuroLink Orchestration
* Classifies tasks as either 'fast' (quick responses) or 'reasoning' (complex analysis)
*/
import type { TaskType, TaskClassification, ClassificationStats, ClassificationValidation } from "../types/index.js";
/**
* Binary Task Classifier
* Determines if a task requires fast response or deeper reasoning
*/
export declare class BinaryTaskClassifier {
/**
* Classify a prompt as either fast or reasoning task
*/
static classify(prompt: string): TaskClassification;
/**
* Get classification statistics for multiple prompts
*/
static getClassificationStats(prompts: string[]): ClassificationStats;
/**
* Validate classification accuracy (for testing/tuning)
*/
static validateClassification(prompt: string, expectedType: TaskType): ClassificationValidation;
}