()
| 228 | } |
| 229 | |
| 230 | private async replaceAgent() { |
| 231 | const previousAgent = this.agent |
| 232 | this.agent = this.createAgent() |
| 233 | this.agentKey = this.currentAgentKey() |
| 234 | await previousAgent[Symbol.asyncDispose]() |
| 235 | } |
| 236 | |
| 237 | private currentAgentKey() { |
| 238 | const modelKey = |
no test coverage detected