@@ -37,6 +37,7 @@ def create(
3737 * ,
3838 url : str ,
3939 local : typing .Optional [bool ] = OMIT ,
40+ agent_id : typing .Optional [str ] = OMIT ,
4041 mode : typing .Optional [Mode ] = OMIT ,
4142 use_proxy : typing .Optional [bool ] = OMIT ,
4243 browser_params : typing .Optional [CreateSessionInputBrowserParams ] = OMIT ,
@@ -54,6 +55,9 @@ def create(
5455 local : typing.Optional[bool]
5556 Boolean flag to indicate if session to be run locally or in the cloud (Default: False). If set to true, the session will be run locally via your chrome extension. If set to false, the session will be run in the cloud.
5657
58+ agent_id : typing.Optional[str]
59+ The agent id to use for the session.
60+
5761 mode : typing.Optional[Mode]
5862
5963 use_proxy : typing.Optional[bool]
@@ -89,6 +93,7 @@ def create(
8993 json = {
9094 "url" : url ,
9195 "local" : local ,
96+ "agent_id" : agent_id ,
9297 "mode" : mode ,
9398 "use_proxy" : use_proxy ,
9499 "browser_params" : browser_params ,
@@ -117,6 +122,7 @@ def step_stream(
117122 url : typing .Optional [str ] = OMIT ,
118123 browser_params : typing .Optional [SessionsStepStreamRequestBrowserParams ] = OMIT ,
119124 temperature : typing .Optional [float ] = OMIT ,
125+ agent_id : typing .Optional [str ] = OMIT ,
120126 mode : typing .Optional [Mode ] = OMIT ,
121127 include_screenshot : typing .Optional [bool ] = OMIT ,
122128 request_options : typing .Optional [RequestOptions ] = None ,
@@ -140,6 +146,9 @@ def step_stream(
140146 temperature : typing.Optional[float]
141147 The temperature of model
142148
149+ agent_id : typing.Optional[str]
150+ The agent id to use for the session.
151+
143152 mode : typing.Optional[Mode]
144153
145154 include_screenshot : typing.Optional[bool]
@@ -169,6 +178,7 @@ def step_stream(
169178 width=1.1,
170179 ),
171180 temperature=1.1,
181+ agent_id="string",
172182 mode="fast",
173183 include_screenshot=True,
174184 )
@@ -183,6 +193,7 @@ def step_stream(
183193 "url" : url ,
184194 "browser_params" : browser_params ,
185195 "temperature" : temperature ,
196+ "agent_id" : agent_id ,
186197 "mode" : mode ,
187198 "include_screenshot" : include_screenshot ,
188199 "stream" : True ,
@@ -214,6 +225,7 @@ def step(
214225 url : typing .Optional [str ] = OMIT ,
215226 browser_params : typing .Optional [SessionsStepRequestBrowserParams ] = OMIT ,
216227 temperature : typing .Optional [float ] = OMIT ,
228+ agent_id : typing .Optional [str ] = OMIT ,
217229 mode : typing .Optional [Mode ] = OMIT ,
218230 include_screenshot : typing .Optional [bool ] = OMIT ,
219231 request_options : typing .Optional [RequestOptions ] = None ,
@@ -237,6 +249,9 @@ def step(
237249 temperature : typing.Optional[float]
238250 The temperature of model
239251
252+ agent_id : typing.Optional[str]
253+ The agent id to use for the session.
254+
240255 mode : typing.Optional[Mode]
241256
242257 include_screenshot : typing.Optional[bool]
@@ -269,6 +284,7 @@ def step(
269284 "url" : url ,
270285 "browser_params" : browser_params ,
271286 "temperature" : temperature ,
287+ "agent_id" : agent_id ,
272288 "mode" : mode ,
273289 "include_screenshot" : include_screenshot ,
274290 "stream" : False ,
@@ -418,6 +434,7 @@ async def create(
418434 * ,
419435 url : str ,
420436 local : typing .Optional [bool ] = OMIT ,
437+ agent_id : typing .Optional [str ] = OMIT ,
421438 mode : typing .Optional [Mode ] = OMIT ,
422439 use_proxy : typing .Optional [bool ] = OMIT ,
423440 browser_params : typing .Optional [CreateSessionInputBrowserParams ] = OMIT ,
@@ -435,6 +452,9 @@ async def create(
435452 local : typing.Optional[bool]
436453 Boolean flag to indicate if session to be run locally or in the cloud (Default: False). If set to true, the session will be run locally via your chrome extension. If set to false, the session will be run in the cloud.
437454
455+ agent_id : typing.Optional[str]
456+ The agent id to use for the session.
457+
438458 mode : typing.Optional[Mode]
439459
440460 use_proxy : typing.Optional[bool]
@@ -470,6 +490,7 @@ async def create(
470490 json = {
471491 "url" : url ,
472492 "local" : local ,
493+ "agent_id" : agent_id ,
473494 "mode" : mode ,
474495 "use_proxy" : use_proxy ,
475496 "browser_params" : browser_params ,
@@ -498,6 +519,7 @@ async def step_stream(
498519 url : typing .Optional [str ] = OMIT ,
499520 browser_params : typing .Optional [SessionsStepStreamRequestBrowserParams ] = OMIT ,
500521 temperature : typing .Optional [float ] = OMIT ,
522+ agent_id : typing .Optional [str ] = OMIT ,
501523 mode : typing .Optional [Mode ] = OMIT ,
502524 include_screenshot : typing .Optional [bool ] = OMIT ,
503525 request_options : typing .Optional [RequestOptions ] = None ,
@@ -521,6 +543,9 @@ async def step_stream(
521543 temperature : typing.Optional[float]
522544 The temperature of model
523545
546+ agent_id : typing.Optional[str]
547+ The agent id to use for the session.
548+
524549 mode : typing.Optional[Mode]
525550
526551 include_screenshot : typing.Optional[bool]
@@ -550,6 +575,7 @@ async def step_stream(
550575 width=1.1,
551576 ),
552577 temperature=1.1,
578+ agent_id="string",
553579 mode="fast",
554580 include_screenshot=True,
555581 )
@@ -564,6 +590,7 @@ async def step_stream(
564590 "url" : url ,
565591 "browser_params" : browser_params ,
566592 "temperature" : temperature ,
593+ "agent_id" : agent_id ,
567594 "mode" : mode ,
568595 "include_screenshot" : include_screenshot ,
569596 "stream" : True ,
@@ -595,6 +622,7 @@ async def step(
595622 url : typing .Optional [str ] = OMIT ,
596623 browser_params : typing .Optional [SessionsStepRequestBrowserParams ] = OMIT ,
597624 temperature : typing .Optional [float ] = OMIT ,
625+ agent_id : typing .Optional [str ] = OMIT ,
598626 mode : typing .Optional [Mode ] = OMIT ,
599627 include_screenshot : typing .Optional [bool ] = OMIT ,
600628 request_options : typing .Optional [RequestOptions ] = None ,
@@ -618,6 +646,9 @@ async def step(
618646 temperature : typing.Optional[float]
619647 The temperature of model
620648
649+ agent_id : typing.Optional[str]
650+ The agent id to use for the session.
651+
621652 mode : typing.Optional[Mode]
622653
623654 include_screenshot : typing.Optional[bool]
@@ -650,6 +681,7 @@ async def step(
650681 "url" : url ,
651682 "browser_params" : browser_params ,
652683 "temperature" : temperature ,
684+ "agent_id" : agent_id ,
653685 "mode" : mode ,
654686 "include_screenshot" : include_screenshot ,
655687 "stream" : False ,
0 commit comments