Skip to content

Commit 4d94b11

Browse files
Teach agent updates (#128)
* added celebration tool in Agent27 * teach mode and preprocess changes
1 parent 8938e62 commit 4d94b11

File tree

4 files changed

+432
-442
lines changed

4 files changed

+432
-442
lines changed

src/lib/agent/LocalAgent.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ Continue upon the previous steps what has been done so far and suggest next step
738738
`;
739739
const userPromptTokens = TokenCounter.countMessage(new HumanMessage(userPrompt));
740740
const browserStateMessage = await this._getBrowserStateMessage(
741-
/* includeScreenshot */ this.executionContext.supportsVision() && this.executionContext.isLimitedContextMode(),
741+
/* includeScreenshot */ this.executionContext.supportsVision() && !this.executionContext.isLimitedContextMode(),
742742
/* simplified */ true,
743743
/* screenshotSize */ "large",
744744
/* includeBrowserState */ true,
@@ -832,7 +832,7 @@ Continue upon the previous steps what has been done so far and suggest next step
832832
const additionalTokens = TokenCounter.countMessage(new HumanMessage(executionContext + '\n'+ plannerOutputForExecutor));
833833

834834
const browserStateMessage = await this._getBrowserStateMessage(
835-
/* includeScreenshot */ this.executionContext.supportsVision() && this.executionContext.isLimitedContextMode(),
835+
/* includeScreenshot */ this.executionContext.supportsVision() && !this.executionContext.isLimitedContextMode(),
836836
/* simplified */ true,
837837
/* screenshotSize */ "medium",
838838
/* includeBrowserState */ true,
@@ -1370,7 +1370,7 @@ Continue upon your previous steps what has been done so far and suggest next ste
13701370
`;
13711371
const userPromptTokens = TokenCounter.countMessage(new HumanMessage(userPrompt));
13721372
const browserStateMessage = await this._getBrowserStateMessage(
1373-
/* includeScreenshot */ this.executionContext.supportsVision() && this.executionContext.isLimitedContextMode(),
1373+
/* includeScreenshot */ this.executionContext.supportsVision() && !this.executionContext.isLimitedContextMode(),
13741374
/* simplified */ true,
13751375
/* screenshotSize */ "large",
13761376
/* includeBrowserState */ true,

0 commit comments

Comments
 (0)