@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) • 702 B
TypeScript
import type { LangfuseAttributePolicy, SpanAttributes } from "../types/index.js";
/**
* @description Applies the exporter's policy to a span's attributes: fills environment and release when the span has none, removes input and output when `redactIO` is set, and masks input, output and metadata when a mask is configured.
* @param attributes {SpanAttributes} - Attributes of the span being exported.
* @param policy {LangfuseAttributePolicy} - Environment, release, redaction and mask settings.
* @returns {SpanAttributes} A new attribute record; the input is not modified.
*/
export declare function protectAttributes(attributes: SpanAttributes, policy: LangfuseAttributePolicy): SpanAttributes;