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

8 lines (7 loc) • 438 B
import type { VertexAnthropicMessage } from "../types/index.js"; /** * Strips base64 image/PDF payloads from Anthropic messages before they go on a * trace attribute — one screenshot would otherwise be megabytes on a span. * Other block types pass through; the serializer still applies its length cap. */ export declare function sanitizeAnthropicMessagesForTrace(messages: VertexAnthropicMessage[]): Array<Record<string, unknown>>;