INNER CODE UNIT · TypeScript

Promise

hyperbrowserai/HyperAgent · src/agent/index.ts:1548

            await new Promise((resolve) => setTimeout(resolve, 500));
            continue;
          }
          throw err;
        }
      }
      throw new HyperagentError(
        "Failed to execute action after max retries due to page switching",
        500
      );
    };

    hyperPage.ai = (task: string, params?: TaskParams) =>
      this.executeTask(task, params, getActivePage());

    hyperPage.perform = (instruction: string, params?: TaskParams) =>
      executeSingleActionWithRetry(instruction, params);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…