gemini-cli / packages /cli /src /utils /autoMemory.ts
SaylorTwift's picture
SaylorTwift HF Staff
Add files using upload-large-folder tool
7421850 verified
Raw
History Blame Contribute Delete
419 Bytes
/**
* @license
* Copyright 2026 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import {
debugLogger,
startMemoryService,
type Config,
} from '@google/gemini-cli-core';
export function startAutoMemoryIfEnabled(config: Config): void {
if (!config.isAutoMemoryEnabled()) {
return;
}
startMemoryService(config).catch((e) => {
debugLogger.error('Failed to start memory service:', e);
});
}