()
| 204 | } |
| 205 | |
| 206 | async setTools(): Promise<void> { |
| 207 | const toolRegistry = await this.config.getToolRegistry(); |
| 208 | const toolDeclarations = toolRegistry.getFunctionDeclarations(); |
| 209 | const tools: Tool[] = [{ functionDeclarations: toolDeclarations }]; |
| 210 | this.getChat().setTools(tools); |
| 211 | } |
| 212 | |
| 213 | async resetChat(): Promise<void> { |
| 214 | this.chat = await this.startChat(); |
no test coverage detected