@@ -80,8 +80,8 @@ class WrappedTaskCreatedResponse(TaskCreatedResponse):
80
80
"""TaskCreatedResponse with utility methods for easier interfacing with Browser Use Cloud."""
81
81
82
82
def __init__ (self , id : str , client : TasksClient ):
83
- super ().__init__ ()
84
- self .id = id
83
+ super ().__init__ (id = id )
84
+ self ._client = client
85
85
86
86
def complete (
87
87
self , interval : float = 1 , request_options : typing .Optional [RequestOptions ] = None
@@ -111,9 +111,9 @@ class WrappedStructuredTaskCreatedResponse(TaskCreatedResponse, Generic[T]):
111
111
"""TaskCreatedResponse with structured output."""
112
112
113
113
def __init__ (self , id : str , schema : type [T ], client : TasksClient ):
114
- super ().__init__ ()
114
+ super ().__init__ (id = id )
115
115
116
- self .id = id
116
+ self ._client = client
117
117
self ._schema = schema
118
118
119
119
def complete (
@@ -144,8 +144,8 @@ class AsyncWrappedTaskCreatedResponse(TaskCreatedResponse):
144
144
"""TaskCreatedResponse with utility methods for easier interfacing with Browser Use Cloud."""
145
145
146
146
def __init__ (self , id : str , client : AsyncTasksClient ):
147
- super ().__init__ ()
148
- self .id = id
147
+ super ().__init__ (id = id )
148
+ self ._client = client
149
149
150
150
async def complete (self , interval : float = 1 , request_options : typing .Optional [RequestOptions ] = None ) -> TaskView :
151
151
"""Waits for the task to finish and return the result."""
@@ -173,9 +173,9 @@ class AsyncWrappedStructuredTaskCreatedResponse(TaskCreatedResponse, Generic[T])
173
173
"""TaskCreatedResponse with structured output."""
174
174
175
175
def __init__ (self , id : str , schema : type [T ], client : AsyncTasksClient ):
176
- super ().__init__ ()
176
+ super ().__init__ (id = id )
177
177
178
- self .id = id
178
+ self ._client = client
179
179
self ._schema = schema
180
180
181
181
async def complete (
0 commit comments