diff options
| author | A.J. Shulman <Shulman.aj@gmail.com> | 2024-07-10 16:16:26 -0400 |
|---|---|---|
| committer | A.J. Shulman <Shulman.aj@gmail.com> | 2024-07-10 16:16:26 -0400 |
| commit | cab0311e2fd9a6379628c000d11ddcd805e01f64 (patch) | |
| tree | 60cb3f397426cb3931c13ebe3b8a1e8eb98480dd /src/client/views/nodes/ChatBox/ChatBot.ts | |
| parent | d0e09ff3526e4f6b9aad824fad1020d083a87631 (diff) | |
first attempt at integrating everything
Diffstat (limited to 'src/client/views/nodes/ChatBox/ChatBot.ts')
| -rw-r--r-- | src/client/views/nodes/ChatBox/ChatBot.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/client/views/nodes/ChatBox/ChatBot.ts b/src/client/views/nodes/ChatBox/ChatBot.ts new file mode 100644 index 000000000..31b4ea9e3 --- /dev/null +++ b/src/client/views/nodes/ChatBox/ChatBot.ts @@ -0,0 +1,14 @@ +import { Agent } from './Agent'; +import { Vectorstore } from './vectorstore/VectorstoreUpload'; + +export class ChatBot { + private agent: Agent; + + constructor(vectorstore: Vectorstore) { + this.agent = new Agent(vectorstore); + } + + async ask(question: string): Promise<string> { + return await this.agent.askAgent(question); + } +} |
