Skip to content

Commit be21019

Browse files
committed
Fix create_task
1 parent caf87cf commit be21019

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

src/browser_use_sdk/wrapper/tasks/client.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ def create_task(
4242
thinking: typing.Optional[bool] = OMIT,
4343
vision: typing.Optional[CreateTaskRequestVision] = OMIT,
4444
system_prompt_extension: typing.Optional[str] = OMIT,
45+
judge: typing.Optional[bool] = OMIT,
46+
judge_ground_truth: typing.Optional[str] = OMIT,
47+
judge_llm: typing.Optional[SupportedLlMs] = OMIT,
4548
request_options: typing.Optional[RequestOptions] = None,
4649
) -> WrappedStructuredTaskCreatedResponse[T]: ...
4750

@@ -64,6 +67,9 @@ def create_task(
6467
thinking: typing.Optional[bool] = OMIT,
6568
vision: typing.Optional[CreateTaskRequestVision] = OMIT,
6669
system_prompt_extension: typing.Optional[str] = OMIT,
70+
judge: typing.Optional[bool] = OMIT,
71+
judge_ground_truth: typing.Optional[str] = OMIT,
72+
judge_llm: typing.Optional[SupportedLlMs] = OMIT,
6773
request_options: typing.Optional[RequestOptions] = None,
6874
) -> WrappedTaskCreatedResponse: ...
6975

@@ -86,6 +92,9 @@ def create_task(
8692
thinking: typing.Optional[bool] = OMIT,
8793
vision: typing.Optional[CreateTaskRequestVision] = OMIT,
8894
system_prompt_extension: typing.Optional[str] = OMIT,
95+
judge: typing.Optional[bool] = OMIT,
96+
judge_ground_truth: typing.Optional[str] = OMIT,
97+
judge_llm: typing.Optional[SupportedLlMs] = OMIT,
8998
request_options: typing.Optional[RequestOptions] = None,
9099
) -> typing.Union[WrappedStructuredTaskCreatedResponse[T], WrappedTaskCreatedResponse]:
91100
if schema is not None and schema is not OMIT:
@@ -107,6 +116,9 @@ def create_task(
107116
thinking=thinking,
108117
vision=vision,
109118
system_prompt_extension=system_prompt_extension,
119+
judge=judge,
120+
judge_ground_truth=judge_ground_truth,
121+
judge_llm=judge_llm,
110122
request_options=request_options,
111123
)
112124

@@ -129,6 +141,9 @@ def create_task(
129141
thinking=thinking,
130142
vision=vision,
131143
system_prompt_extension=system_prompt_extension,
144+
judge=judge,
145+
judge_ground_truth=judge_ground_truth,
146+
judge_llm=judge_llm,
132147
request_options=request_options,
133148
)
134149

@@ -182,6 +197,9 @@ async def create_task(
182197
thinking: typing.Optional[bool] = OMIT,
183198
vision: typing.Optional[CreateTaskRequestVision] = OMIT,
184199
system_prompt_extension: typing.Optional[str] = OMIT,
200+
judge: typing.Optional[bool] = OMIT,
201+
judge_ground_truth: typing.Optional[str] = OMIT,
202+
judge_llm: typing.Optional[SupportedLlMs] = OMIT,
185203
request_options: typing.Optional[RequestOptions] = None,
186204
) -> AsyncWrappedStructuredTaskCreatedResponse[T]: ...
187205

@@ -204,6 +222,9 @@ async def create_task(
204222
thinking: typing.Optional[bool] = OMIT,
205223
vision: typing.Optional[CreateTaskRequestVision] = OMIT,
206224
system_prompt_extension: typing.Optional[str] = OMIT,
225+
judge: typing.Optional[bool] = OMIT,
226+
judge_ground_truth: typing.Optional[str] = OMIT,
227+
judge_llm: typing.Optional[SupportedLlMs] = OMIT,
207228
request_options: typing.Optional[RequestOptions] = None,
208229
) -> AsyncWrappedTaskCreatedResponse: ...
209230

@@ -226,6 +247,9 @@ async def create_task(
226247
thinking: typing.Optional[bool] = OMIT,
227248
vision: typing.Optional[CreateTaskRequestVision] = OMIT,
228249
system_prompt_extension: typing.Optional[str] = OMIT,
250+
judge: typing.Optional[bool] = OMIT,
251+
judge_ground_truth: typing.Optional[str] = OMIT,
252+
judge_llm: typing.Optional[SupportedLlMs] = OMIT,
229253
request_options: typing.Optional[RequestOptions] = None,
230254
) -> typing.Union[AsyncWrappedStructuredTaskCreatedResponse[T], AsyncWrappedTaskCreatedResponse]:
231255
if schema is not None and schema is not OMIT:
@@ -247,6 +271,9 @@ async def create_task(
247271
thinking=thinking,
248272
vision=vision,
249273
system_prompt_extension=system_prompt_extension,
274+
judge=judge,
275+
judge_ground_truth=judge_ground_truth,
276+
judge_llm=judge_llm,
250277
request_options=request_options,
251278
)
252279
return AsyncWrappedStructuredTaskCreatedResponse[T](id=res.id, session_id=res.session_id, schema=schema, client=self)
@@ -268,6 +295,9 @@ async def create_task(
268295
thinking=thinking,
269296
vision=vision,
270297
system_prompt_extension=system_prompt_extension,
298+
judge=judge,
299+
judge_ground_truth=judge_ground_truth,
300+
judge_llm=judge_llm,
271301
request_options=request_options,
272302
)
273303
return AsyncWrappedTaskCreatedResponse(id=res.id, session_id=res.session_id, client=self)

0 commit comments

Comments
 (0)