(decision string, toolName string)
| 386 | |
| 387 | func (e *CoreExecutionEngine) Shutdown() { |
| 388 | e.disconnectMCP(context.Background()) |
| 389 | if e.TaskRuntime != nil { |
| 390 | e.TaskRuntime.Shutdown() |
| 391 | } |
| 392 | if e.extraction != nil { |
| 393 | e.extraction.Cancel() |
| 394 | } |
| 395 | e.flushAndSealMemory(context.Background()) |
| 396 | e.closeMemoryEngine() |
| 397 | if e.skillPersistence != nil { |
| 398 | e.skillPersistence.ClearAll() |
| 399 | } |
| 400 | e.mu.Lock() |
| 401 | defer e.mu.Unlock() |
| 402 | e.aborted = false |
| 403 | e.mcpInitialized = false |
| 404 | e.permissionFuture = nil |
| 405 | e.skillPermissionCh = nil |
no outgoing calls
no test coverage detected