INNER CODE UNIT · TypeScript

listTasksForAgent

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

async function listTasksForAgent(agentId: string): Promise<PaginatedTaskListList | null> {
    console.log(`Input Agent ID: ${agentId}`);
    return handleApiCall('List Tasks for Agent', () =>
        browserUseApi.listTasks(agentId)
    );
}

// The API now directly exposes a method to list all tasks for a user
async function listAllTasks(): Promise<TaskList | null> {
    return handleApiCall('List All Tasks for User', () => 
        browserUseApi.listAllTasks()
    );
}

async function getTask(
    agentId: string,
    taskId: string
): Promise<TaskDetail | null> {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…