UNPKG

@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

17 lines (16 loc) • 695 B
/** * NeuroLink Middleware System * * This module provides a comprehensive middleware system for NeuroLink that integrates * with the AI SDK's wrapLanguageModel functionality. It allows for modular enhancement * of language models with features like analytics, guardrails, caching, and more. */ // Import types and classes import { MiddlewareFactory } from "./factory.js"; // Core types and interfaces // Factory for creating and applying middleware chains export { MiddlewareFactory }; // Built-in middleware creators export { createLifecycleMiddleware } from "./builtin/lifecycle.js"; // Export the factory as the default export for clean, direct usage export default MiddlewareFactory;