Commit 21a8c96 1 parent ca99c91 commit 21a8c96 Copy full SHA for 21a8c96
File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ import readline from "readline";
32
32
import yargs from "yargs" ;
33
33
import path from "path" ;
34
34
import { fileURLToPath } from "url" ;
35
- import blobert from "./blobert .ts" ;
35
+ import { character } from "./character .ts" ;
36
36
import type { DirectClient } from "@ai16z/client-direct" ;
37
37
38
38
const __filename = fileURLToPath ( import . meta. url ) ; // get the resolved path to the file
@@ -263,6 +263,13 @@ export function createAgent(
263
263
} ) ;
264
264
}
265
265
266
+ function intializeFsCache ( baseDir : string , character : Character ) {
267
+ const cacheDir = path . resolve ( baseDir , character . id , "cache" ) ;
268
+
269
+ const cache = new CacheManager ( new FsCacheAdapter ( cacheDir ) ) ;
270
+ return cache ;
271
+ }
272
+
266
273
function intializeDbCache ( character : Character , db : IDatabaseCacheAdapter ) {
267
274
const cache = new CacheManager ( new DbCacheAdapter ( db , character . id ) ) ;
268
275
return cache ;
@@ -310,7 +317,7 @@ const startAgents = async () => {
310
317
311
318
let charactersArg = args . characters || args . character ;
312
319
313
- let characters = [ blobert ] ;
320
+ let characters = [ character ] ;
314
321
315
322
if ( charactersArg ) {
316
323
characters = await loadCharacters ( charactersArg ) ;
You can’t perform that action at this time.
0 commit comments