@@ -80,8 +80,8 @@ class WrappedTaskCreatedResponse(TaskCreatedResponse):
8080 """TaskCreatedResponse with utility methods for easier interfacing with Browser Use Cloud."""
8181
8282 def __init__ (self , id : str , client : TasksClient ):
83- super ().__init__ ()
84- self .id = id
83+ super ().__init__ (id = id )
84+ self ._client = client
8585
8686 def complete (
8787 self , interval : float = 1 , request_options : typing .Optional [RequestOptions ] = None
@@ -111,9 +111,9 @@ class WrappedStructuredTaskCreatedResponse(TaskCreatedResponse, Generic[T]):
111111 """TaskCreatedResponse with structured output."""
112112
113113 def __init__ (self , id : str , schema : type [T ], client : TasksClient ):
114- super ().__init__ ()
114+ super ().__init__ (id = id )
115115
116- self .id = id
116+ self ._client = client
117117 self ._schema = schema
118118
119119 def complete (
@@ -144,8 +144,8 @@ class AsyncWrappedTaskCreatedResponse(TaskCreatedResponse):
144144 """TaskCreatedResponse with utility methods for easier interfacing with Browser Use Cloud."""
145145
146146 def __init__ (self , id : str , client : AsyncTasksClient ):
147- super ().__init__ ()
148- self .id = id
147+ super ().__init__ (id = id )
148+ self ._client = client
149149
150150 async def complete (self , interval : float = 1 , request_options : typing .Optional [RequestOptions ] = None ) -> TaskView :
151151 """Waits for the task to finish and return the result."""
@@ -173,9 +173,9 @@ class AsyncWrappedStructuredTaskCreatedResponse(TaskCreatedResponse, Generic[T])
173173 """TaskCreatedResponse with structured output."""
174174
175175 def __init__ (self , id : str , schema : type [T ], client : AsyncTasksClient ):
176- super ().__init__ ()
176+ super ().__init__ (id = id )
177177
178- self .id = id
178+ self ._client = client
179179 self ._schema = schema
180180
181181 async def complete (
0 commit comments