INNER CODE UNIT · TypeScript
updateTask
gobii-ai/gobii-platform · misc/ts-example-client/src/index.ts:198
async function updateTask(
agentId: string,
taskId: string,
newInputData: string
): Promise<TaskDetail | null> {
console.log(`Input Agent ID: ${agentId}`);
console.log(`Input Task ID: ${taskId}`);
console.log(`Input New Data: ${newInputData}`);
return handleApiCall('Update Task Input Data', () =>
browserUseApi.updateTask(agentId, taskId, { inputData: newInputData })
);
}
async function cancelTask(agentId: string, taskId: string): Promise<CancelTaskResponse | null> {
console.log(`Input Agent ID: ${agentId}`);
console.log(`Input Task ID: ${taskId}`);
const result = await handleApiCall('Cancel Task', () =>
browserUseApi.cancelTask(agentId, taskId)