UNPKG

openlit

Version:

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

16 lines (15 loc) 586 B
import { GuardConfig } from './types'; export declare abstract class BaseGuard { protected provider?: GuardConfig['provider']; protected apiKey?: string; protected model?: string; protected baseUrl?: string; protected thresholdScore: number; protected collectMetrics: boolean; protected customRules?: GuardConfig['customRules']; protected validTopics?: string[]; protected invalidTopics?: string[]; constructor(config?: GuardConfig); protected abstract getSystemPrompt(): string; protected llmResponse(prompt: string): Promise<string>; }