@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
42 lines (41 loc) • 1.32 kB
TypeScript
/**
* File Processor Integration Module
*
* Provides integration between the ProcessorRegistry and message building.
* Exports utilities for processing files through registered processors
* with automatic type detection and batch processing support.
*
* @module processors/integration
*
* @example
* ```typescript
* import {
* // Single file processing
* processFileWithRegistry,
*
* // Batch processing
* processBatchWithRegistry,
*
* // Discovery utilities
* getSupportedFileTypes,
* isFileTypeSupported,
* getProcessorForFile,
*
* // Types
* type FileProcessingOptions,
* type BatchFileProcessingResult,
* } from "./integration/index.js";
*
* // Process a single file with auto-detection
* const { processorName, result } = await processFileWithRegistry(fileInfo);
*
* // Process multiple files
* const batchResult = await processBatchWithRegistry(files, { maxFiles: 50 });
*
* // Check supported types
* const supported = getSupportedFileTypes();
* const isSupported = isFileTypeSupported("application/pdf", "doc.pdf");
* const match = getProcessorForFile("image/jpeg", "photo.jpg");
* ```
*/
export { getProcessorForFile, getSupportedFileTypes, isFileTypeSupported, processBatchWithRegistry, processFileWithRegistry, } from "./FileProcessorIntegration.js";