import { Module } from '@nestjs/common';
import { PrismaService } from '../../prisma/prisma.service';
import { AiService } from '../ai/ai.service';
import { AiModule } from '../ai/ai.module';
import { JobsModule } from '../jobs/jobs.module';
import { XiaobaoAiService } from './xiaobao-ai.service';
import { XIAOBAO_AI_INTERPRETER, XIAOBAO_AI_PRISMA } from './xiaobao-ai.types';
import { XiaobaoAiWorker } from './xiaobao-ai.worker';

@Module({
  imports: [AiModule, JobsModule],
  providers: [
    { provide: XIAOBAO_AI_PRISMA, useExisting: PrismaService },
    { provide: XIAOBAO_AI_INTERPRETER, useExisting: AiService },
    XiaobaoAiService,
    XiaobaoAiWorker,
  ],
  exports: [XiaobaoAiService, XiaobaoAiWorker],
})
export class XiaobaoAiModule {}
