@juspay/neurolink
Version:
Universal AI Development Platform with working MCP integration, multi-provider support, voice (TTS/STT/realtime), and professional CLI. 58+ external MCP servers discoverable, multimodal file processing, RAG pipelines. Build, test, and deploy AI applicatio
18 lines (17 loc) • 658 B
TypeScript
/**
* Context Budget Checker
*
* Pre-generation validation that estimates total input token cost
* and compares against the model's available input space.
*
* This runs BEFORE every LLM call to prevent context overflow.
*/
import type { BudgetCheckResult, BudgetCheckParams } from "../types/index.js";
/**
* Check whether a request fits within the model's context budget.
*
* Estimates total input tokens from: system prompt + tool definitions +
* conversation history + current prompt + file attachments, and compares
* against available input space.
*/
export declare function checkContextBudget(params: BudgetCheckParams): BudgetCheckResult;