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

19 lines (18 loc) • 1.03 kB
/** * Ephemeral grounding-context assembly. * * Renders the selected entries into a single delimited, token-bounded block * with reference-data instructions and stable `[KB:<id>@<version>]` citations. * The delimiter is provider-neutral (`<knowledge_context>`) because this layer * is generic SDK code. Entries are emitted in selection order (relevance, then * dependency); when the budget is tight an entry is degraded to summary-only * before any entry is dropped. */ import type { KnowledgeAssembledContext, KnowledgeContextConfig, KnowledgeSelection } from "../types/index.js"; /** * Assemble the selected entries into a bounded grounding block. Primary entries * come first, then relationship-expanded ones. Returns the string, the * citations for included entries, an estimated token count, and whether any * entry was degraded or dropped for budget. */ export declare const assembleKnowledgeContext: (selection: KnowledgeSelection, config: KnowledgeContextConfig | undefined) => KnowledgeAssembledContext;