Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
fatihturker committed May 7, 2023
1 parent dea7fef commit d8e5bfa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion NPM-README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class SeniorBackendSoftwareEngineerAGI extends MainAGI<ActionType> {
this.consolidationId = uuidv4();
super.consolidationId = this.consolidationId;

super.initialize(__dirname);
super.initialize(__dirname, this.consolidationId);

this.mainPrompt = await this.fileUtil.readFileContent(
path.join(
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class SeniorBackendSoftwareEngineerAGI extends MainAGI<ActionType> {
this.consolidationId = uuidv4();
super.consolidationId = this.consolidationId;

super.initialize(__dirname);
super.initialize(__dirname, this.consolidationId);

this.mainPrompt = await this.fileUtil.readFileContent(
path.join(
Expand Down
8 changes: 4 additions & 4 deletions lib/agi/main.agi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ export class MainAGI<T extends ActionType> {
/**
* Initializes the AGI.
*/
protected initialize(dirname: string) {
protected initialize(dirname: string, consolidationId: string) {
this.ltmPath = path.join(
dirname,
'..',
'..',
'output',
'memory',
this.consolidationId + '.json'
consolidationId + '.json'
);

this.logPath = path.join(
Expand All @@ -62,10 +62,10 @@ export class MainAGI<T extends ActionType> {
'..',
'output',
'log',
this.consolidationId + '.log'
consolidationId + '.log'
);

this.taskDir = path.join(dirname, '..', '..', 'task', this.consolidationId);
this.taskDir = path.join(dirname, '..', '..', 'task', consolidationId);
}

/**
Expand Down

0 comments on commit d8e5bfa

Please sign in to comment.