From c2d5c64d8352572a0af5d37e2ce8b471ac7b2600 Mon Sep 17 00:00:00 2001 From: cryptofish7 Date: Thu, 12 Dec 2024 01:06:34 +0000 Subject: [PATCH] Fix typo: initialize --- agent/src/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/agent/src/index.ts b/agent/src/index.ts index 9e030d3557..8aab1b5d38 100644 --- a/agent/src/index.ts +++ b/agent/src/index.ts @@ -459,14 +459,14 @@ export async function createAgent( }); } -function intializeFsCache(baseDir: string, character: Character) { +function initializeFsCache(baseDir: string, character: Character) { const cacheDir = path.resolve(baseDir, character.id, "cache"); const cache = new CacheManager(new FsCacheAdapter(cacheDir)); return cache; } -function intializeDbCache(character: Character, db: IDatabaseCacheAdapter) { +function initializeDbCache(character: Character, db: IDatabaseCacheAdapter) { const cache = new CacheManager(new DbCacheAdapter(db, character.id)); return cache; } @@ -489,7 +489,7 @@ async function startAgent(character: Character, directClient) { await db.init(); - const cache = intializeDbCache(character, db); + const cache = initializeDbCache(character, db); const runtime = await createAgent(character, db, cache, token); await runtime.initialize();