@@ -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
@@ -501,9 +496,9 @@ export interface TaskView {
501
496
* View model for representing a session that a task belongs to
502
497
*
503
498
* Attributes: id: Unique identifier for the session status: Current status of the
504
- * session live_url: URL where the browser can be viewed live in real-time.
505
- * started_at: Timestamp when the session was created and started. finished_at:
506
- * Timestamp when the session was stopped (None if still active).
499
+ * session (active/stopped) live_url: URL where the browser can be viewed live in
500
+ * real-time. started_at: Timestamp when the session was created and started.
501
+ * finished_at: Timestamp when the session was stopped (None if still active).
507
502
*/
508
503
session : TaskView . Session ;
509
504
@@ -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
@@ -542,9 +538,9 @@ export namespace TaskView {
542
538
* View model for representing a session that a task belongs to
543
539
*
544
540
* Attributes: id: Unique identifier for the session status: Current status of the
545
- * session live_url: URL where the browser can be viewed live in real-time.
546
- * started_at: Timestamp when the session was created and started. finished_at:
547
- * Timestamp when the session was stopped (None if still active).
541
+ * session (active/stopped) live_url: URL where the browser can be viewed live in
542
+ * real-time. started_at: Timestamp when the session was created and started.
543
+ * finished_at: Timestamp when the session was stopped (None if still active).
548
544
*/
549
545
export interface Session {
550
546
id : string ;
@@ -633,19 +629,20 @@ export interface TaskCreateParams {
633
629
task : string ;
634
630
635
631
/**
636
- * Configuration settings for the AI agent
632
+ * Configuration settings for the agent
637
633
*
638
- * Attributes: llm: The LLM model to use for the agent profile_id: Unique
639
- * identifier of the agent profile to use for the task
634
+ * Attributes: llm: The LLM model to use for the agent start_url: Optional URL to
635
+ * start the agent on (will not be changed as a step) profile_id: Unique identifier
636
+ * of the agent profile to use for the task
640
637
*/
641
638
agentSettings ?: TaskCreateParams . AgentSettings ;
642
639
643
640
/**
644
641
* Configuration settings for the browser session
645
642
*
646
643
* Attributes: session_id: Unique identifier of existing session to continue
647
- * profile_id: Unique identifier of browser profile to use save_browser_data:
648
- * Whether to save browser state/data for the user to download later
644
+ * profile_id: Unique identifier of browser profile to use (use if you want to
645
+ * start a new session)
649
646
*/
650
647
browserSettings ?: TaskCreateParams . BrowserSettings ;
651
648
@@ -660,29 +657,30 @@ export interface TaskCreateParams {
660
657
661
658
export namespace TaskCreateParams {
662
659
/**
663
- * Configuration settings for the AI agent
660
+ * Configuration settings for the agent
664
661
*
665
- * Attributes: llm: The LLM model to use for the agent profile_id: Unique
666
- * identifier of the agent profile to use for the task
662
+ * Attributes: llm: The LLM model to use for the agent start_url: Optional URL to
663
+ * start the agent on (will not be changed as a step) profile_id: Unique identifier
664
+ * of the agent profile to use for the task
667
665
*/
668
666
export interface AgentSettings {
669
667
llm ?: TasksAPI . LlmModel ;
670
668
671
669
profileId ?: string | null ;
670
+
671
+ startUrl ?: string | null ;
672
672
}
673
673
674
674
/**
675
675
* Configuration settings for the browser session
676
676
*
677
677
* Attributes: session_id: Unique identifier of existing session to continue
678
- * profile_id: Unique identifier of browser profile to use save_browser_data:
679
- * Whether to save browser state/data for the user to download later
678
+ * profile_id: Unique identifier of browser profile to use (use if you want to
679
+ * start a new session)
680
680
*/
681
681
export interface BrowserSettings {
682
682
profileId ?: string | null ;
683
683
684
- saveBrowserData ?: boolean ;
685
-
686
684
sessionId ?: string | null ;
687
685
}
688
686
}
@@ -699,14 +697,19 @@ export interface TaskUpdateParams {
699
697
}
700
698
701
699
export interface TaskListParams {
700
+ after ?: string | null ;
701
+
702
+ before ?: string | null ;
703
+
702
704
/**
703
- * Enumeration of possible task filters
705
+ * Enumeration of possible task execution states
704
706
*
705
- * Attributes: STARTED: All started tasks PAUSED: All paused tasks STOPPED: All
706
- * stopped tasks FINISHED: All finished tasks SUCCESSFUL: All successful tasks
707
- * 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).
708
711
*/
709
- filterBy ?: 'started' | 'paused' | 'stopped' | 'finished' | 'successful' | 'unsuccessful' | null ;
712
+ filterBy ?: TaskStatus | null ;
710
713
711
714
pageNumber ?: number ;
712
715
0 commit comments