Skip to content

Commit

Permalink
Fix typo: initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptofish7 committed Dec 12, 2024
1 parent 021205e commit c2d5c64
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions agent/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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();
Expand Down

0 comments on commit c2d5c64

Please sign in to comment.