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

21 lines (20 loc) • 700 B
/** * JSON-aware Chunker * * Splits JSON documents based on structure (arrays, objects, keys). * Best for API responses, configuration files, and structured data. */ import type { BaseChunkerConfig, Chunk, Chunker, ChunkerValidationResult, JSONChunkerConfig } from "../../types/index.js"; /** * JSON-aware chunker implementation * Splits based on JSON structure */ export declare class JSONChunker implements Chunker { readonly strategy: "json"; chunk(text: string, config?: JSONChunkerConfig): Promise<Chunk[]>; /** * Recursively extract chunks from JSON structure */ private extractChunks; validateConfig(config: BaseChunkerConfig): ChunkerValidationResult; }