INNER CODE UNIT · TypeScript

result

gobii-ai/gobii-platform · misc/ts-example-client/src/index.ts:214

    const result = await handleApiCall('Cancel Task', () =>
        browserUseApi.cancelTask(agentId, taskId)
    );
    return result;
}

async function deleteTask(agentId: string, taskId: string): Promise<boolean> {
    console.log(`Input Agent ID: ${agentId}`);
    console.log(`Input Task ID: ${taskId}`);
    const result = await handleApiCall('Delete Task', () =>
        browserUseApi.deleteTask(agentId, taskId)
    );
    return result !== null;
}

// --- Demo Flow ---
async function runAllDemo(apiKey: string, baseUrl: string) {
    initializeApiClient(apiKey, baseUrl);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…