@bobmatnyc/ai-code-review
Version:
A TypeScript-based tool for automated code reviews using AI models from Google Gemini, Anthropic Claude, and OpenRouter
39 lines (38 loc) • 1.15 kB
TypeScript
/**
* @fileoverview OpenAI-specific prompt strategy.
*
* This module provides a prompt strategy optimized for OpenAI models
* like GPT-4.
*/
import { ReviewOptions } from '../../types/review';
import { PromptStrategy } from './PromptStrategy';
import { PromptManager } from '../PromptManager';
import { PromptCache } from '../cache/PromptCache';
/**
* Prompt strategy for OpenAI models
*/
export declare class OpenAIPromptStrategy extends PromptStrategy {
/**
* Create a new OpenAI prompt strategy
* @param promptManager Prompt manager instance
* @param promptCache Prompt cache instance
*/
constructor(promptManager: PromptManager, promptCache: PromptCache);
/**
* Format a prompt for OpenAI models
* @param prompt Raw prompt
* @param options Review options
* @returns Formatted prompt
*/
formatPrompt(prompt: string, _options: ReviewOptions): string;
/**
* Get the name of the strategy
* @returns Strategy name
*/
getName(): string;
/**
* Get the description of the strategy
* @returns Strategy description
*/
getDescription(): string;
}