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

23 lines (22 loc) • 814 B
/** * Prompt redaction utilities for safe logging * Provides consistent prompt masking across NeuroLink components */ import type { PromptRedactionOptions } from "../types/index.js"; /** * Redact a prompt for safe logging * Truncates to maxLength and optionally shows word count */ export declare function redactPrompt(prompt: string, options?: PromptRedactionOptions): string; /** * Create a short safe mask for highly sensitive contexts */ export declare function createSafeMask(prompt: string, _maskLength?: number): string; /** * Redact for classification context (matches classifier behavior) */ export declare function redactForClassification(prompt: string): string; /** * Redact for routing context (matches router behavior) */ export declare function redactForRouting(prompt: string): string;