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

9 lines (8 loc) • 351 B
/** * Stage 1: Tool Output Pruning * * Walk messages backwards, protect recent tool output tokens, * replace older tool results with "[Tool result cleared]". */ import type { ChatMessage, PruneConfig, PruneResult } from "../../types/index.js"; export declare function pruneToolOutputs(messages: ChatMessage[], config?: PruneConfig): PruneResult;