UNPKG

@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.17 kB
/** * @fileoverview Anthropic-specific prompt strategy. * * This module provides a prompt strategy optimized for Anthropic models * like Claude. */ import { ReviewOptions } from '../../types/review'; import { PromptStrategy } from './PromptStrategy'; import { PromptManager } from '../PromptManager'; import { PromptCache } from '../cache/PromptCache'; /** * Prompt strategy for Anthropic models */ export declare class AnthropicPromptStrategy extends PromptStrategy { /** * Create a new Anthropic prompt strategy * @param promptManager Prompt manager instance * @param promptCache Prompt cache instance */ constructor(promptManager: PromptManager, promptCache: PromptCache); /** * Format a prompt for Anthropic 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; }