UNPKG

openlit

Version:

OpenTelemetry-native Auto instrumentation library for monitoring LLM Applications, facilitating the integration of observability into your GenAI-driven projects

14 lines (13 loc) 834 B
import { GuardResult, CustomRule } from './types'; export declare function customRuleDetection(text: string, customRules?: CustomRule[]): GuardResult; export declare function guardMetrics(): import("@opentelemetry/api").Counter<import("@opentelemetry/api").Attributes>; export declare function guardMetricAttributes(verdict: string, score: number, validator: string, classification: string, explanation: string): { 'telemetry.sdk.name': string; 'openlit.guard.verdict': string; 'openlit.guard.score': number; 'openlit.guard.validator': string; 'openlit.guard.classification': string; 'openlit.guard.explanation': string; }; export declare function toGuardResult(result: unknown, guardType: string): GuardResult; export declare function applyThresholdScore(result: GuardResult, threshold: number): GuardResult;