(
msg: Api.Message,
question: string,
trigger?: Api.Message,
)
| 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[], |
no test coverage detected