INNER CODE UNIT · JavaScript

maxSteps

figranium/figranium · src/agent/figranite/index.js:399

        const maxSteps = Math.max(actions.length * 20, 1000);
        let steps = 0;
        let lastMouse = null;

        // ⚡ Bolt: Hoist full actionContext out of loop to eliminate O(N) object creation and spread overhead.
        // Using getters for lastBlockOutput and lastMouse ensures they stay in sync with the loop's state.
        const actionContext = {
            page,
            logs,
            runtimeVars,
            resolveTemplate,
            captureScreenshot,
            baseDelay,
            options: actionOptions,
            baseUrl,
            solverIdentity: {
                proxy: launchOptions.proxy || null,
                userAgent: selectedUA,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…