* 智能问答
(question: string)
| 237 | * 智能问答 |
| 238 | */ |
| 239 | public async ask(question: string): Promise<string> { |
| 240 | this.log(`收到问题: ${question}`); |
| 241 | const response = await this.chat(question); |
| 242 | this.log(`生成回答: ${response.substring(0, 50)}...`); |
| 243 | return response; |
| 244 | } |
| 245 | |
| 246 | /** |
| 247 | * 使用 Qwen 的 Function Call 功能 |