@@ -403,33 +403,17 @@ export interface FileView {
403
403
fileName : string ;
404
404
}
405
405
406
- export type LlmModel =
407
- | 'gpt-4o'
408
- | 'gpt-4o-mini'
409
- | 'gpt-4.1'
410
- | 'gpt-4.1-mini'
411
- | 'o4-mini'
412
- | 'o3'
413
- | 'gemini-2.0-flash'
414
- | 'gemini-2.0-flash-lite'
415
- | 'gemini-2.5-flash-preview-04-17'
416
- | 'gemini-2.5-flash'
417
- | 'gemini-2.5-pro'
418
- | 'claude-3-7-sonnet-20250219'
419
- | 'claude-sonnet-4-20250514'
420
- | 'llama-4-maverick-17b-128e-instruct' ;
421
-
422
406
/**
423
407
* View model for representing a task with its execution details
424
408
*
425
409
* Attributes: id: Unique identifier for the task session_id: ID of the session
426
- * this task belongs to llm: The LLM model used for this task task: The task
427
- * prompt/instruction given to the agent status: Current status of the task
428
- * execution started_at: Naive UTC timestamp when the task was started finished_at:
429
- * Naive UTC timestamp when the task completed (None if still running) metadata:
430
- * Optional additional metadata associated with the task set by the user
431
- * is_scheduled: Whether this task was created as a scheduled task steps: Optional
432
- * list of execution steps done_output: Final output/result of the task
410
+ * this task belongs to llm: The LLM model used for this task represented as a
411
+ * string task: The task prompt/instruction given to the agent status: Current
412
+ * status of the task execution started_at: Naive UTC timestamp when the task was
413
+ * started finished_at: Naive UTC timestamp when the task completed (None if still
414
+ * running) metadata: Optional additional metadata associated with the task set by
415
+ * the user is_scheduled: Whether this task was created as a scheduled task steps:
416
+ * Optional list of execution steps done_output: Final output/result of the task
433
417
* user_uploaded_files: Optional list of files uploaded by user for this task
434
418
* output_files: Optional list of files generated as output by this task
435
419
* browser_use_version: Version of browser-use used for this task (older tasks may
@@ -441,7 +425,7 @@ export interface TaskItemView {
441
425
442
426
isScheduled : boolean ;
443
427
444
- llm : LlmModel ;
428
+ llm : string ;
445
429
446
430
sessionId : string ;
447
431
@@ -511,24 +495,24 @@ export interface TaskStepView {
511
495
*
512
496
* Attributes: id: Unique identifier for the task session_id: ID of the session
513
497
* this task belongs to session: The session this task belongs to llm: The LLM
514
- * model used for this task task: The task prompt/instruction given to the agent
515
- * status: Current status of the task execution started_at: Naive UTC timestamp
516
- * when the task was started finished_at : Naive UTC timestamp when the task
517
- * completed (None if still running) metadata: Optional additional metadata
518
- * associated with the task set by the user is_scheduled: Whether this task was
519
- * created as a scheduled task steps: List of execution steps done_output: Final
520
- * output/result of the task user_uploaded_files: List of files uploaded by user
521
- * for this task output_files : List of files generated as output by this task
522
- * browser_use_version: Version of browser-use used for this task (older tasks may
523
- * not have this set) is_success: Whether the task was successful (self-reported by
524
- * the agent)
498
+ * model used for this task represented as a string task: The task
499
+ * prompt/instruction given to the agent status: Current status of the task
500
+ * execution started_at : Naive UTC timestamp when the task was started finished_at:
501
+ * Naive UTC timestamp when the task completed (None if still running) metadata:
502
+ * Optional additional metadata associated with the task set by the user
503
+ * is_scheduled: Whether this task was created as a scheduled task steps: List of
504
+ * execution steps done_output: Final output/result of the task
505
+ * user_uploaded_files : List of files uploaded by user for this task output_files:
506
+ * List of files generated as output by this task browser_use_version: Version of
507
+ * browser-use used for this task (older tasks may not have this set) is_success:
508
+ * Whether the task was successful (self-reported by the agent)
525
509
*/
526
510
export interface TaskView {
527
511
id : string ;
528
512
529
513
isScheduled : boolean ;
530
514
531
- llm : LlmModel ;
515
+ llm : string ;
532
516
533
517
outputFiles : Array < FileView > ;
534
518
@@ -704,7 +688,18 @@ export namespace TaskCreateParams {
704
688
* of the agent profile to use for the task
705
689
*/
706
690
export interface AgentSettings {
707
- llm ?: TasksAPI . LlmModel ;
691
+ llm ?:
692
+ | 'gpt-4.1'
693
+ | 'gpt-4.1-mini'
694
+ | 'o4-mini'
695
+ | 'o3'
696
+ | 'gemini-2.5-flash'
697
+ | 'gemini-2.5-pro'
698
+ | 'claude-sonnet-4-20250514'
699
+ | 'gpt-4o'
700
+ | 'gpt-4o-mini'
701
+ | 'llama-4-maverick-17b-128e-instruct'
702
+ | 'claude-3-7-sonnet-20250219' ;
708
703
709
704
profileId ?: string | null ;
710
705
@@ -769,7 +764,6 @@ export interface TaskGetUserUploadedFileParams {
769
764
export declare namespace Tasks {
770
765
export {
771
766
type FileView as FileView ,
772
- type LlmModel as LlmModel ,
773
767
type TaskItemView as TaskItemView ,
774
768
type TaskStatus as TaskStatus ,
775
769
type TaskStepView as TaskStepView ,
0 commit comments