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();