/** * OpenAI-compatible semantic judge adapter. * * Converts any chat-completions-compatible endpoint into an ATRSemanticJudge. * This keeps ATR vendor-neutral while giving operators a ready-to-use bridge * for OpenAI, LiteLLM, vLLM, LM Studio, and similar gateways. * * @module agent-threat-rules/judges/openai-compatible */ import type { ATRSemanticJudge } from "../types.js"; export interface OpenAICompatibleJudgeConfig { /** API key sent as Bearer token. */ readonly apiKey: string; /** API base URL, /v1 URL, or full /chat/completions URL. */ readonly baseUrl?: string; /** Chat model name. */ readonly model?: string; /** Sampling temperature. Defaults to 0 for deterministic judging. */ readonly temperature?: number; /** Maximum output tokens. */ readonly maxTokens?: number; /** Request timeout in milliseconds. */ readonly timeoutMs?: number; /** Extra headers such as organization or project IDs. */ readonly additionalHeaders?: Record; /** Include OpenAI JSON mode response_format. Defaults to true. */ readonly jsonMode?: boolean; } /** * Create an ATR semantic judge backed by an OpenAI-compatible chat endpoint. */ export declare function createOpenAICompatibleJudge(config: OpenAICompatibleJudgeConfig): ATRSemanticJudge; //# sourceMappingURL=openai-compatible.d.ts.map