Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
AlephNotation committed Apr 15, 2024
1 parent 72eec84 commit 602a1ff
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions src/agentBrowser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,44 +250,6 @@ export class AgentBrowser {
}
}

// private async unconstrainedBrowse<
// TObjectiveComplete extends z.AnyZodObject = typeof ObjectiveComplete
// >(
// currentObjective: string,
// iterations: { max: number; current: number },
// responseType: ReturnType<typeof ModelResponseSchema<TObjectiveComplete>>
// ) {
// while (iterations.current <= iterations.max) {
// const step = await this.step(currentObjective, responseType);
// const stepResponse = responseType.parse(step);
// if (this.logger) {
// this.logger.log(JSON.stringify(stepResponse));
// }
// if (stepResponse.objectiveComplete) {
// const answer = {
// result: { kind: "ObjectiveComplete", result: stepResponse },
// url: this.browser.url(),
// content: this.browser.content(),
// };
// if (this.logger) {
// this.logger.log(JSON.stringify(answer));
// }
// return answer;
// } else if (stepResponse.command) {
// debug.write(
// "Performing action:" + JSON.stringify(stepResponse.command)
// );
// this.browser.performManyActions(
// stepResponse.command as BrowserAction[],
// this.inventory
// );
// }
// iterations.current++;

// return iterations;
// }
// }

async browse<
TObjectiveComplete extends z.AnyZodObject = typeof ObjectiveComplete
>(
Expand Down

0 comments on commit 602a1ff

Please sign in to comment.