import { Agent } from './Agent'; import { Vectorstore } from './vectorstore/VectorstoreUpload'; import dotenv from 'dotenv'; dotenv.config(); export class ChatBot { private agent: Agent; constructor(vectorstore: Vectorstore) { this.agent = new Agent(vectorstore); } async ask(question: string): Promise { return await this.agent.askAgent(question); } }