@@ -226,25 +226,18 @@ export class Tasks extends APIResource {
226
226
}
227
227
228
228
/**
229
- * Get a paginated list of all AI agent tasks for the authenticated user.
229
+ * Get a paginated list of all Browser Use Agent tasks for the authenticated user.
230
230
*
231
- * AI agent tasks are the individual jobs that your agents perform within a
232
- * session. Each task represents a specific instruction or goal that the agent
231
+ * Browser Use Agent tasks are the individual jobs that your agents perform within
232
+ * a session. Each task represents a specific instruction or goal that the agent
233
233
* works on, such as filling out a form, extracting data, or navigating to specific
234
234
* pages.
235
235
*
236
- * You can control what data is included for each task:
237
- *
238
- * - Task steps: Detailed actions the agent took
239
- * - User uploaded files: Files you provided for the task
240
- * - Output files: Files generated by the agent during the task
241
- *
242
236
* Returns:
243
237
*
244
- * - A paginated list of agent tasks
245
- * - Total count of tasks
238
+ * - A paginated list of Browser Use Agent tasks
239
+ * - Total count of Browser Use Agent tasks
246
240
* - Page information for navigation
247
- * - Optional detailed data based on your parameters
248
241
*/
249
242
list (
250
243
query : TaskListParams | null | undefined = { } ,
@@ -417,9 +410,10 @@ export interface TaskItemView {
417
410
/**
418
411
* Enumeration of possible task execution states
419
412
*
420
- * Attributes: STARTED: Task has been started and is currently running PAUSED: Task
421
- * execution has been temporarily paused (can be resumed) STOPPED: Task execution
422
- * has been stopped (cannot be resumed) FINISHED: Task has completed successfully
413
+ * Attributes: STARTED: Task has been started and is currently running. PAUSED:
414
+ * Task execution has been temporarily paused (can be resumed) FINISHED: Task has
415
+ * finished and the agent has completed the task. STOPPED: Task execution has been
416
+ * manually stopped (cannot be resumed).
423
417
*/
424
418
status : TaskStatus ;
425
419
@@ -439,11 +433,12 @@ export interface TaskItemView {
439
433
/**
440
434
* Enumeration of possible task execution states
441
435
*
442
- * Attributes: STARTED: Task has been started and is currently running PAUSED: Task
443
- * execution has been temporarily paused (can be resumed) STOPPED: Task execution
444
- * has been stopped (cannot be resumed) FINISHED: Task has completed successfully
436
+ * Attributes: STARTED: Task has been started and is currently running. PAUSED:
437
+ * Task execution has been temporarily paused (can be resumed) FINISHED: Task has
438
+ * finished and the agent has completed the task. STOPPED: Task execution has been
439
+ * manually stopped (cannot be resumed).
445
440
*/
446
- export type TaskStatus = 'started' | 'paused' | 'stopped ' | 'finished ' ;
441
+ export type TaskStatus = 'started' | 'paused' | 'finished ' | 'stopped ' ;
447
442
448
443
/**
449
444
* View model for representing a single step in a task's execution
@@ -514,9 +509,10 @@ export interface TaskView {
514
509
/**
515
510
* Enumeration of possible task execution states
516
511
*
517
- * Attributes: STARTED: Task has been started and is currently running PAUSED: Task
518
- * execution has been temporarily paused (can be resumed) STOPPED: Task execution
519
- * has been stopped (cannot be resumed) FINISHED: Task has completed successfully
512
+ * Attributes: STARTED: Task has been started and is currently running. PAUSED:
513
+ * Task execution has been temporarily paused (can be resumed) FINISHED: Task has
514
+ * finished and the agent has completed the task. STOPPED: Task execution has been
515
+ * manually stopped (cannot be resumed).
520
516
*/
521
517
status : TaskStatus ;
522
518
@@ -701,14 +697,19 @@ export interface TaskUpdateParams {
701
697
}
702
698
703
699
export interface TaskListParams {
700
+ after ?: string | null ;
701
+
702
+ before ?: string | null ;
703
+
704
704
/**
705
- * Enumeration of possible task filters
705
+ * Enumeration of possible task execution states
706
706
*
707
- * Attributes: STARTED: All started tasks PAUSED: All paused tasks STOPPED: All
708
- * stopped tasks FINISHED: All finished tasks SUCCESSFUL: All successful tasks
709
- * UNSUCCESSFUL: All unsuccessful tasks
707
+ * Attributes: STARTED: Task has been started and is currently running. PAUSED:
708
+ * Task execution has been temporarily paused (can be resumed) FINISHED: Task has
709
+ * finished and the agent has completed the task. STOPPED: Task execution has been
710
+ * manually stopped (cannot be resumed).
710
711
*/
711
- filterBy ?: 'started' | 'paused' | 'stopped' | 'finished' | 'successful' | 'unsuccessful' | null ;
712
+ filterBy ?: TaskStatus | null ;
712
713
713
714
pageNumber ?: number ;
714
715
0 commit comments