UNPKG

@bobmatnyc/ai-code-review

Version:

A TypeScript-based tool for automated code reviews using AI models from Google Gemini, Anthropic Claude, and OpenRouter

22 lines (21 loc) 1.06 kB
/** * @fileoverview Review generator module. * * This module is responsible for generating code reviews using the appropriate * API client based on the selected client type. It centralizes the logic for * generating reviews across different AI providers. */ import { ApiClientConfig } from './ApiClientSelector'; import { FileInfo, ReviewOptions, ReviewResult, ReviewType } from '../types/review'; import { ProjectDocs } from '../utils/projectDocs'; /** * Generate a code review using the appropriate API client * @param fileInfos Array of file information objects * @param project Project name * @param reviewType Type of review to perform * @param projectDocs Optional project documentation * @param options Review options * @param apiClientConfig API client configuration * @returns Promise resolving to the review result */ export declare function generateReview(fileInfos: FileInfo[], project: string, reviewType: ReviewType, projectDocs: ProjectDocs | null, options: ReviewOptions, apiClientConfig: ApiClientConfig): Promise<ReviewResult>;