INNER CODE UNIT · JavaScript

isStopRequested

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

const isStopRequested = (runId) => {
    return consumeStopRequest(runId);
};

class TaskInputError extends Error {
    constructor(message) {
        super(message);
        this.name = 'TaskInputError';
        this.code = 'INVALID_TASK_INPUT';
        this.isTaskInputError = true;
    }
}

async function runFigranite(data, options = {}) {
    let { url, actions, wait: globalWait, rotateUserAgents, rotateProxies, humanTyping, stealth = {}, sessionId } = data;
    const autoSolveCaptcha = parseBooleanFlag(data.autoSolveCaptcha);

    const runtimeVars = { ...(data.taskVariables || data.variables || {}) };

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…