Skip to content

Commit 80eb328

Browse files
committed
Release 1.3.5
1 parent ab60d01 commit 80eb328

File tree

6 files changed

+155
-100
lines changed

6 files changed

+155
-100
lines changed

poetry.lock

Lines changed: 110 additions & 97 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "multion"
3-
version = "1.3.4"
3+
version = "1.3.5"
44
description = ""
55
readme = "README.md"
66
authors = []

src/multion/base_client.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ def browse(
104104
max_steps: typing.Optional[int] = OMIT,
105105
include_screenshot: typing.Optional[bool] = OMIT,
106106
temperature: typing.Optional[float] = OMIT,
107+
agent_id: typing.Optional[str] = OMIT,
107108
mode: typing.Optional[Mode] = OMIT,
108109
use_proxy: typing.Optional[bool] = OMIT,
109110
request_options: typing.Optional[RequestOptions] = None
@@ -136,6 +137,9 @@ def browse(
136137
temperature : typing.Optional[float]
137138
The temperature of model
138139
140+
agent_id : typing.Optional[str]
141+
The agent id to use for the session.
142+
139143
mode : typing.Optional[Mode]
140144
141145
use_proxy : typing.Optional[bool]
@@ -172,6 +176,7 @@ def browse(
172176
"max_steps": max_steps,
173177
"include_screenshot": include_screenshot,
174178
"temperature": temperature,
179+
"agent_id": agent_id,
175180
"mode": mode,
176181
"use_proxy": use_proxy,
177182
},
@@ -389,6 +394,7 @@ async def browse(
389394
max_steps: typing.Optional[int] = OMIT,
390395
include_screenshot: typing.Optional[bool] = OMIT,
391396
temperature: typing.Optional[float] = OMIT,
397+
agent_id: typing.Optional[str] = OMIT,
392398
mode: typing.Optional[Mode] = OMIT,
393399
use_proxy: typing.Optional[bool] = OMIT,
394400
request_options: typing.Optional[RequestOptions] = None
@@ -421,6 +427,9 @@ async def browse(
421427
temperature : typing.Optional[float]
422428
The temperature of model
423429
430+
agent_id : typing.Optional[str]
431+
The agent id to use for the session.
432+
424433
mode : typing.Optional[Mode]
425434
426435
use_proxy : typing.Optional[bool]
@@ -457,6 +466,7 @@ async def browse(
457466
"max_steps": max_steps,
458467
"include_screenshot": include_screenshot,
459468
"temperature": temperature,
469+
"agent_id": agent_id,
460470
"mode": mode,
461471
"use_proxy": use_proxy,
462472
},

src/multion/core/client_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def get_headers(self) -> typing.Dict[str, str]:
1717
headers: typing.Dict[str, str] = {
1818
"X-Fern-Language": "Python",
1919
"X-Fern-SDK-Name": "multion",
20-
"X-Fern-SDK-Version": "1.3.4",
20+
"X-Fern-SDK-Version": "1.3.5",
2121
}
2222
headers["X_MULTION_API_KEY"] = self.api_key
2323
return headers

src/multion/sessions/client.py

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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,

src/multion/types/mode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
import typing
44

5-
Mode = typing.Union[typing.Literal["fast", "standard", "ludicrous"], typing.Any]
5+
Mode = typing.Union[typing.Literal["fast", "standard"], typing.Any]

0 commit comments

Comments
 (0)