MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / runQuestion

Method runQuestion

ai/ai.ts:4387–4403  ·  view source on GitHub ↗
(
    msg: Api.Message,
    question: string,
    trigger?: Api.Message,
  )

Source from the content-addressed store, hash-verified

4385
4386 private async runQuestion(
4387 msg: Api.Message,
4388 question: string,
4389 trigger?: Api.Message,
4390 ): Promise<void> {
4391 this.cancelCurrentOperation();
4392
4393 const token = this.aiService.createAbortToken();
4394 this.activeToken = token;
4395
4396 try {
4397 await this.handleQuestion(msg, question, trigger, token);
4398 } finally {
4399 this.activeToken = undefined;
4400 this.aiService.releaseToken(token);
4401 }
4402 }
4403
4404 async execute(
4405 msg: Api.Message,
4406 args: string[],

Callers 2

executeMethod · 0.95
askFromReplyMethod · 0.95

Calls 4

handleQuestionMethod · 0.95
createAbortTokenMethod · 0.80
releaseTokenMethod · 0.80

Tested by

no test coverage detected