- HERENCIA-SIMCO.md actualizado con directivas v3.7 y v3.8 - Actualizaciones de configuracion Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
27 lines
955 B
TypeScript
27 lines
955 B
TypeScript
import { AIService } from './services';
|
|
import { ChatRequestDto, ChatResponseDto, UpdateAIConfigDto, AIConfigResponseDto, UsageStatsDto, AIModelDto } from './dto';
|
|
interface RequestUser {
|
|
id: string;
|
|
tenant_id: string;
|
|
email: string;
|
|
role: string;
|
|
}
|
|
export declare class AIController {
|
|
private readonly aiService;
|
|
constructor(aiService: AIService);
|
|
chat(user: RequestUser, dto: ChatRequestDto): Promise<ChatResponseDto>;
|
|
getModels(): Promise<AIModelDto[]>;
|
|
getConfig(user: RequestUser): Promise<AIConfigResponseDto>;
|
|
updateConfig(user: RequestUser, dto: UpdateAIConfigDto): Promise<AIConfigResponseDto>;
|
|
getUsage(user: RequestUser, page?: number, limit?: number): Promise<{
|
|
data: import("./entities").AIUsage[];
|
|
total: number;
|
|
}>;
|
|
getCurrentUsage(user: RequestUser): Promise<UsageStatsDto>;
|
|
health(): Promise<{
|
|
status: string;
|
|
timestamp: string;
|
|
}>;
|
|
}
|
|
export {};
|