raccoonai 0.1.0a1__tar.gz → 0.1.0a2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- raccoonai-0.1.0a2/.release-please-manifest.json +3 -0
- raccoonai-0.1.0a2/CHANGELOG.md +17 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/PKG-INFO +6 -6
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/README.md +5 -5
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/pyproject.toml +1 -1
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/src/raccoonai/_version.py +1 -1
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/src/raccoonai/resources/lam.py +84 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/src/raccoonai/types/fleet_create_response.py +3 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/src/raccoonai/types/lam_extract_params.py +18 -1
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/src/raccoonai/types/lam_extract_response.py +3 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/src/raccoonai/types/lam_integration_run_params.py +23 -1
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/src/raccoonai/types/lam_integration_run_response.py +8 -2
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/src/raccoonai/types/lam_run_params.py +18 -1
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/src/raccoonai/types/lam_run_response.py +4 -1
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/tests/api_resources/test_lam.py +60 -0
- raccoonai-0.1.0a1/.release-please-manifest.json +0 -3
- raccoonai-0.1.0a1/CHANGELOG.md +0 -9
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/.gitignore +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/CONTRIBUTING.md +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/LICENSE +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/SECURITY.md +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/api.md +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/bin/check-release-environment +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/bin/publish-pypi +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/examples/.keep +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/mypy.ini +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/noxfile.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/release-please-config.json +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/requirements-dev.lock +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/requirements.lock +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/src/raccoonai/__init__.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/src/raccoonai/_base_client.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/src/raccoonai/_client.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/src/raccoonai/_compat.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/src/raccoonai/_constants.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/src/raccoonai/_exceptions.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/src/raccoonai/_files.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/src/raccoonai/_models.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/src/raccoonai/_qs.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/src/raccoonai/_resource.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/src/raccoonai/_response.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/src/raccoonai/_streaming.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/src/raccoonai/_types.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/src/raccoonai/_utils/__init__.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/src/raccoonai/_utils/_logs.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/src/raccoonai/_utils/_proxy.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/src/raccoonai/_utils/_reflection.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/src/raccoonai/_utils/_streams.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/src/raccoonai/_utils/_sync.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/src/raccoonai/_utils/_transform.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/src/raccoonai/_utils/_typing.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/src/raccoonai/_utils/_utils.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/src/raccoonai/lib/.keep +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/src/raccoonai/py.typed +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/src/raccoonai/resources/__init__.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/src/raccoonai/resources/fleet.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/src/raccoonai/types/__init__.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/src/raccoonai/types/fleet_create_params.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/src/raccoonai/types/fleet_logs_response.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/src/raccoonai/types/fleet_status_response.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/src/raccoonai/types/fleet_terminate_response.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/tests/__init__.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/tests/api_resources/__init__.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/tests/api_resources/test_fleet.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/tests/conftest.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/tests/sample_file.txt +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/tests/test_client.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/tests/test_deepcopy.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/tests/test_extract_files.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/tests/test_files.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/tests/test_models.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/tests/test_qs.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/tests/test_required_args.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/tests/test_response.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/tests/test_streaming.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/tests/test_transform.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/tests/test_utils/test_proxy.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/tests/test_utils/test_typing.py +0 -0
- {raccoonai-0.1.0a1 → raccoonai-0.1.0a2}/tests/utils.py +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.1.0-alpha.2 (2025-01-29)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0-alpha.1...v0.1.0-alpha.2](https://github.com/flyingraccoonai/raccoonai-python/compare/v0.1.0-alpha.1...v0.1.0-alpha.2)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([#3](https://github.com/flyingraccoonai/raccoonai-python/issues/3)) ([e251dc3](https://github.com/flyingraccoonai/raccoonai-python/commit/e251dc358ce3cc88ef81c20911125a237cd88d07))
|
|
10
|
+
|
|
11
|
+
## 0.1.0-alpha.1 (2025-01-24)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v0.0.1-alpha.0...v0.1.0-alpha.1](https://github.com/flyingraccoonai/raccoonai-python/compare/v0.0.1-alpha.0...v0.1.0-alpha.1)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** update via SDK Studio ([b4beda1](https://github.com/flyingraccoonai/raccoonai-python/commit/b4beda18093cfb681ade68610e307b7ce07fa4d2))
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: raccoonai
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.0a2
|
|
4
4
|
Summary: The official Python library for the raccoonAI API
|
|
5
5
|
Project-URL: Homepage, https://github.com/flyingraccoonai/raccoonai-python
|
|
6
6
|
Project-URL: Repository, https://github.com/flyingraccoonai/raccoonai-python
|
|
@@ -69,7 +69,7 @@ response = client.lam.run(
|
|
|
69
69
|
query="Find the price of iphone 16 on Amazon.",
|
|
70
70
|
raccoon_passcode="<end-user-raccoon-passcode>",
|
|
71
71
|
)
|
|
72
|
-
print(response.
|
|
72
|
+
print(response.livestream_url)
|
|
73
73
|
```
|
|
74
74
|
|
|
75
75
|
While you can provide a `secret_key` keyword argument,
|
|
@@ -98,7 +98,7 @@ async def main() -> None:
|
|
|
98
98
|
query="Find the price of iphone 16 on Amazon.",
|
|
99
99
|
raccoon_passcode="<end-user-raccoon-passcode>",
|
|
100
100
|
)
|
|
101
|
-
print(response.
|
|
101
|
+
print(response.livestream_url)
|
|
102
102
|
|
|
103
103
|
|
|
104
104
|
asyncio.run(main())
|
|
@@ -121,7 +121,7 @@ stream = client.lam.run(
|
|
|
121
121
|
stream=True,
|
|
122
122
|
)
|
|
123
123
|
for response in stream:
|
|
124
|
-
print(response.
|
|
124
|
+
print(response.livestream_url)
|
|
125
125
|
```
|
|
126
126
|
|
|
127
127
|
The async client uses the exact same interface.
|
|
@@ -137,7 +137,7 @@ stream = await client.lam.run(
|
|
|
137
137
|
stream=True,
|
|
138
138
|
)
|
|
139
139
|
async for response in stream:
|
|
140
|
-
print(response.
|
|
140
|
+
print(response.livestream_url)
|
|
141
141
|
```
|
|
142
142
|
|
|
143
143
|
## Using types
|
|
@@ -288,7 +288,7 @@ response = client.lam.with_raw_response.run(
|
|
|
288
288
|
print(response.headers.get('X-My-Header'))
|
|
289
289
|
|
|
290
290
|
lam = response.parse() # get the object that `lam.run()` would have returned
|
|
291
|
-
print(lam.
|
|
291
|
+
print(lam.livestream_url)
|
|
292
292
|
```
|
|
293
293
|
|
|
294
294
|
These methods return an [`APIResponse`](https://github.com/flyingraccoonai/raccoonai-python/tree/main/src/raccoonai/_response.py) object.
|
|
@@ -37,7 +37,7 @@ response = client.lam.run(
|
|
|
37
37
|
query="Find the price of iphone 16 on Amazon.",
|
|
38
38
|
raccoon_passcode="<end-user-raccoon-passcode>",
|
|
39
39
|
)
|
|
40
|
-
print(response.
|
|
40
|
+
print(response.livestream_url)
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
While you can provide a `secret_key` keyword argument,
|
|
@@ -66,7 +66,7 @@ async def main() -> None:
|
|
|
66
66
|
query="Find the price of iphone 16 on Amazon.",
|
|
67
67
|
raccoon_passcode="<end-user-raccoon-passcode>",
|
|
68
68
|
)
|
|
69
|
-
print(response.
|
|
69
|
+
print(response.livestream_url)
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
asyncio.run(main())
|
|
@@ -89,7 +89,7 @@ stream = client.lam.run(
|
|
|
89
89
|
stream=True,
|
|
90
90
|
)
|
|
91
91
|
for response in stream:
|
|
92
|
-
print(response.
|
|
92
|
+
print(response.livestream_url)
|
|
93
93
|
```
|
|
94
94
|
|
|
95
95
|
The async client uses the exact same interface.
|
|
@@ -105,7 +105,7 @@ stream = await client.lam.run(
|
|
|
105
105
|
stream=True,
|
|
106
106
|
)
|
|
107
107
|
async for response in stream:
|
|
108
|
-
print(response.
|
|
108
|
+
print(response.livestream_url)
|
|
109
109
|
```
|
|
110
110
|
|
|
111
111
|
## Using types
|
|
@@ -256,7 +256,7 @@ response = client.lam.with_raw_response.run(
|
|
|
256
256
|
print(response.headers.get('X-My-Header'))
|
|
257
257
|
|
|
258
258
|
lam = response.parse() # get the object that `lam.run()` would have returned
|
|
259
|
-
print(lam.
|
|
259
|
+
print(lam.livestream_url)
|
|
260
260
|
```
|
|
261
261
|
|
|
262
262
|
These methods return an [`APIResponse`](https://github.com/flyingraccoonai/raccoonai-python/tree/main/src/raccoonai/_response.py) object.
|
|
@@ -57,6 +57,7 @@ class LamResource(SyncAPIResource):
|
|
|
57
57
|
*,
|
|
58
58
|
query: str,
|
|
59
59
|
raccoon_passcode: str,
|
|
60
|
+
advanced: Optional[lam_extract_params.Advanced] | NotGiven = NOT_GIVEN,
|
|
60
61
|
app_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
61
62
|
chat_history: Optional[Iterable[object]] | NotGiven = NOT_GIVEN,
|
|
62
63
|
max_count: Optional[int] | NotGiven = NOT_GIVEN,
|
|
@@ -79,6 +80,9 @@ class LamResource(SyncAPIResource):
|
|
|
79
80
|
raccoon_passcode: The raccoon passcode associated with the end user on behalf of which the call is
|
|
80
81
|
being made.
|
|
81
82
|
|
|
83
|
+
advanced: Advanced configuration options for the task, such as ad-blocking and CAPTCHA
|
|
84
|
+
solving.
|
|
85
|
+
|
|
82
86
|
app_url: This is the entrypoint URL for the web agent.
|
|
83
87
|
|
|
84
88
|
chat_history: The history of the conversation as a list of messages or objects you might use
|
|
@@ -108,6 +112,7 @@ class LamResource(SyncAPIResource):
|
|
|
108
112
|
query: str,
|
|
109
113
|
raccoon_passcode: str,
|
|
110
114
|
stream: Literal[True],
|
|
115
|
+
advanced: Optional[lam_extract_params.Advanced] | NotGiven = NOT_GIVEN,
|
|
111
116
|
app_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
112
117
|
chat_history: Optional[Iterable[object]] | NotGiven = NOT_GIVEN,
|
|
113
118
|
max_count: Optional[int] | NotGiven = NOT_GIVEN,
|
|
@@ -131,6 +136,9 @@ class LamResource(SyncAPIResource):
|
|
|
131
136
|
|
|
132
137
|
stream: Whether the response should be streamed back or not.
|
|
133
138
|
|
|
139
|
+
advanced: Advanced configuration options for the task, such as ad-blocking and CAPTCHA
|
|
140
|
+
solving.
|
|
141
|
+
|
|
134
142
|
app_url: This is the entrypoint URL for the web agent.
|
|
135
143
|
|
|
136
144
|
chat_history: The history of the conversation as a list of messages or objects you might use
|
|
@@ -158,6 +166,7 @@ class LamResource(SyncAPIResource):
|
|
|
158
166
|
query: str,
|
|
159
167
|
raccoon_passcode: str,
|
|
160
168
|
stream: bool,
|
|
169
|
+
advanced: Optional[lam_extract_params.Advanced] | NotGiven = NOT_GIVEN,
|
|
161
170
|
app_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
162
171
|
chat_history: Optional[Iterable[object]] | NotGiven = NOT_GIVEN,
|
|
163
172
|
max_count: Optional[int] | NotGiven = NOT_GIVEN,
|
|
@@ -181,6 +190,9 @@ class LamResource(SyncAPIResource):
|
|
|
181
190
|
|
|
182
191
|
stream: Whether the response should be streamed back or not.
|
|
183
192
|
|
|
193
|
+
advanced: Advanced configuration options for the task, such as ad-blocking and CAPTCHA
|
|
194
|
+
solving.
|
|
195
|
+
|
|
184
196
|
app_url: This is the entrypoint URL for the web agent.
|
|
185
197
|
|
|
186
198
|
chat_history: The history of the conversation as a list of messages or objects you might use
|
|
@@ -207,6 +219,7 @@ class LamResource(SyncAPIResource):
|
|
|
207
219
|
*,
|
|
208
220
|
query: str,
|
|
209
221
|
raccoon_passcode: str,
|
|
222
|
+
advanced: Optional[lam_extract_params.Advanced] | NotGiven = NOT_GIVEN,
|
|
210
223
|
app_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
211
224
|
chat_history: Optional[Iterable[object]] | NotGiven = NOT_GIVEN,
|
|
212
225
|
max_count: Optional[int] | NotGiven = NOT_GIVEN,
|
|
@@ -225,6 +238,7 @@ class LamResource(SyncAPIResource):
|
|
|
225
238
|
{
|
|
226
239
|
"query": query,
|
|
227
240
|
"raccoon_passcode": raccoon_passcode,
|
|
241
|
+
"advanced": advanced,
|
|
228
242
|
"app_url": app_url,
|
|
229
243
|
"chat_history": chat_history,
|
|
230
244
|
"max_count": max_count,
|
|
@@ -247,6 +261,7 @@ class LamResource(SyncAPIResource):
|
|
|
247
261
|
app_name: str,
|
|
248
262
|
*,
|
|
249
263
|
raccoon_passcode: str,
|
|
264
|
+
advanced: Optional[lam_integration_run_params.Advanced] | NotGiven = NOT_GIVEN,
|
|
250
265
|
integration_id: Optional[str] | NotGiven = NOT_GIVEN,
|
|
251
266
|
properties: Optional[object] | NotGiven = NOT_GIVEN,
|
|
252
267
|
stream: Optional[Literal[False]] | NotGiven = NOT_GIVEN,
|
|
@@ -264,6 +279,9 @@ class LamResource(SyncAPIResource):
|
|
|
264
279
|
raccoon_passcode: The raccoon passcode associated with the end user on behalf of which the call is
|
|
265
280
|
being made.
|
|
266
281
|
|
|
282
|
+
advanced: Advanced configuration options for the task, such as ad-blocking and CAPTCHA
|
|
283
|
+
solving.
|
|
284
|
+
|
|
267
285
|
integration_id: The unique identifier for the integration being called.
|
|
268
286
|
|
|
269
287
|
properties: Additional properties or data related to the particular integration.
|
|
@@ -287,6 +305,7 @@ class LamResource(SyncAPIResource):
|
|
|
287
305
|
*,
|
|
288
306
|
raccoon_passcode: str,
|
|
289
307
|
stream: Literal[True],
|
|
308
|
+
advanced: Optional[lam_integration_run_params.Advanced] | NotGiven = NOT_GIVEN,
|
|
290
309
|
integration_id: Optional[str] | NotGiven = NOT_GIVEN,
|
|
291
310
|
properties: Optional[object] | NotGiven = NOT_GIVEN,
|
|
292
311
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -305,6 +324,9 @@ class LamResource(SyncAPIResource):
|
|
|
305
324
|
|
|
306
325
|
stream: Whether the response should be streamed back or not.
|
|
307
326
|
|
|
327
|
+
advanced: Advanced configuration options for the task, such as ad-blocking and CAPTCHA
|
|
328
|
+
solving.
|
|
329
|
+
|
|
308
330
|
integration_id: The unique identifier for the integration being called.
|
|
309
331
|
|
|
310
332
|
properties: Additional properties or data related to the particular integration.
|
|
@@ -326,6 +348,7 @@ class LamResource(SyncAPIResource):
|
|
|
326
348
|
*,
|
|
327
349
|
raccoon_passcode: str,
|
|
328
350
|
stream: bool,
|
|
351
|
+
advanced: Optional[lam_integration_run_params.Advanced] | NotGiven = NOT_GIVEN,
|
|
329
352
|
integration_id: Optional[str] | NotGiven = NOT_GIVEN,
|
|
330
353
|
properties: Optional[object] | NotGiven = NOT_GIVEN,
|
|
331
354
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -344,6 +367,9 @@ class LamResource(SyncAPIResource):
|
|
|
344
367
|
|
|
345
368
|
stream: Whether the response should be streamed back or not.
|
|
346
369
|
|
|
370
|
+
advanced: Advanced configuration options for the task, such as ad-blocking and CAPTCHA
|
|
371
|
+
solving.
|
|
372
|
+
|
|
347
373
|
integration_id: The unique identifier for the integration being called.
|
|
348
374
|
|
|
349
375
|
properties: Additional properties or data related to the particular integration.
|
|
@@ -364,6 +390,7 @@ class LamResource(SyncAPIResource):
|
|
|
364
390
|
app_name: str,
|
|
365
391
|
*,
|
|
366
392
|
raccoon_passcode: str,
|
|
393
|
+
advanced: Optional[lam_integration_run_params.Advanced] | NotGiven = NOT_GIVEN,
|
|
367
394
|
integration_id: Optional[str] | NotGiven = NOT_GIVEN,
|
|
368
395
|
properties: Optional[object] | NotGiven = NOT_GIVEN,
|
|
369
396
|
stream: Optional[Literal[False]] | Literal[True] | NotGiven = NOT_GIVEN,
|
|
@@ -383,6 +410,7 @@ class LamResource(SyncAPIResource):
|
|
|
383
410
|
body=maybe_transform(
|
|
384
411
|
{
|
|
385
412
|
"raccoon_passcode": raccoon_passcode,
|
|
413
|
+
"advanced": advanced,
|
|
386
414
|
"integration_id": integration_id,
|
|
387
415
|
"properties": properties,
|
|
388
416
|
"stream": stream,
|
|
@@ -406,6 +434,7 @@ class LamResource(SyncAPIResource):
|
|
|
406
434
|
*,
|
|
407
435
|
query: str,
|
|
408
436
|
raccoon_passcode: str,
|
|
437
|
+
advanced: Optional[lam_run_params.Advanced] | NotGiven = NOT_GIVEN,
|
|
409
438
|
app_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
410
439
|
chat_history: Optional[Iterable[object]] | NotGiven = NOT_GIVEN,
|
|
411
440
|
stream: Optional[Literal[False]] | NotGiven = NOT_GIVEN,
|
|
@@ -426,6 +455,9 @@ class LamResource(SyncAPIResource):
|
|
|
426
455
|
raccoon_passcode: The raccoon passcode associated with the end user on behalf of which the call is
|
|
427
456
|
being made.
|
|
428
457
|
|
|
458
|
+
advanced: Advanced configuration options for the task, such as ad-blocking and CAPTCHA
|
|
459
|
+
solving.
|
|
460
|
+
|
|
429
461
|
app_url: This is the entrypoint URL for the web agent.
|
|
430
462
|
|
|
431
463
|
chat_history: The history of the conversation as a list of messages or objects you might use
|
|
@@ -450,6 +482,7 @@ class LamResource(SyncAPIResource):
|
|
|
450
482
|
query: str,
|
|
451
483
|
raccoon_passcode: str,
|
|
452
484
|
stream: Literal[True],
|
|
485
|
+
advanced: Optional[lam_run_params.Advanced] | NotGiven = NOT_GIVEN,
|
|
453
486
|
app_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
454
487
|
chat_history: Optional[Iterable[object]] | NotGiven = NOT_GIVEN,
|
|
455
488
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -471,6 +504,9 @@ class LamResource(SyncAPIResource):
|
|
|
471
504
|
|
|
472
505
|
stream: Whether the response should be streamed back or not.
|
|
473
506
|
|
|
507
|
+
advanced: Advanced configuration options for the task, such as ad-blocking and CAPTCHA
|
|
508
|
+
solving.
|
|
509
|
+
|
|
474
510
|
app_url: This is the entrypoint URL for the web agent.
|
|
475
511
|
|
|
476
512
|
chat_history: The history of the conversation as a list of messages or objects you might use
|
|
@@ -493,6 +529,7 @@ class LamResource(SyncAPIResource):
|
|
|
493
529
|
query: str,
|
|
494
530
|
raccoon_passcode: str,
|
|
495
531
|
stream: bool,
|
|
532
|
+
advanced: Optional[lam_run_params.Advanced] | NotGiven = NOT_GIVEN,
|
|
496
533
|
app_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
497
534
|
chat_history: Optional[Iterable[object]] | NotGiven = NOT_GIVEN,
|
|
498
535
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -514,6 +551,9 @@ class LamResource(SyncAPIResource):
|
|
|
514
551
|
|
|
515
552
|
stream: Whether the response should be streamed back or not.
|
|
516
553
|
|
|
554
|
+
advanced: Advanced configuration options for the task, such as ad-blocking and CAPTCHA
|
|
555
|
+
solving.
|
|
556
|
+
|
|
517
557
|
app_url: This is the entrypoint URL for the web agent.
|
|
518
558
|
|
|
519
559
|
chat_history: The history of the conversation as a list of messages or objects you might use
|
|
@@ -535,6 +575,7 @@ class LamResource(SyncAPIResource):
|
|
|
535
575
|
*,
|
|
536
576
|
query: str,
|
|
537
577
|
raccoon_passcode: str,
|
|
578
|
+
advanced: Optional[lam_run_params.Advanced] | NotGiven = NOT_GIVEN,
|
|
538
579
|
app_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
539
580
|
chat_history: Optional[Iterable[object]] | NotGiven = NOT_GIVEN,
|
|
540
581
|
stream: Optional[Literal[False]] | Literal[True] | NotGiven = NOT_GIVEN,
|
|
@@ -551,6 +592,7 @@ class LamResource(SyncAPIResource):
|
|
|
551
592
|
{
|
|
552
593
|
"query": query,
|
|
553
594
|
"raccoon_passcode": raccoon_passcode,
|
|
595
|
+
"advanced": advanced,
|
|
554
596
|
"app_url": app_url,
|
|
555
597
|
"chat_history": chat_history,
|
|
556
598
|
"stream": stream,
|
|
@@ -592,6 +634,7 @@ class AsyncLamResource(AsyncAPIResource):
|
|
|
592
634
|
*,
|
|
593
635
|
query: str,
|
|
594
636
|
raccoon_passcode: str,
|
|
637
|
+
advanced: Optional[lam_extract_params.Advanced] | NotGiven = NOT_GIVEN,
|
|
595
638
|
app_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
596
639
|
chat_history: Optional[Iterable[object]] | NotGiven = NOT_GIVEN,
|
|
597
640
|
max_count: Optional[int] | NotGiven = NOT_GIVEN,
|
|
@@ -614,6 +657,9 @@ class AsyncLamResource(AsyncAPIResource):
|
|
|
614
657
|
raccoon_passcode: The raccoon passcode associated with the end user on behalf of which the call is
|
|
615
658
|
being made.
|
|
616
659
|
|
|
660
|
+
advanced: Advanced configuration options for the task, such as ad-blocking and CAPTCHA
|
|
661
|
+
solving.
|
|
662
|
+
|
|
617
663
|
app_url: This is the entrypoint URL for the web agent.
|
|
618
664
|
|
|
619
665
|
chat_history: The history of the conversation as a list of messages or objects you might use
|
|
@@ -643,6 +689,7 @@ class AsyncLamResource(AsyncAPIResource):
|
|
|
643
689
|
query: str,
|
|
644
690
|
raccoon_passcode: str,
|
|
645
691
|
stream: Literal[True],
|
|
692
|
+
advanced: Optional[lam_extract_params.Advanced] | NotGiven = NOT_GIVEN,
|
|
646
693
|
app_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
647
694
|
chat_history: Optional[Iterable[object]] | NotGiven = NOT_GIVEN,
|
|
648
695
|
max_count: Optional[int] | NotGiven = NOT_GIVEN,
|
|
@@ -666,6 +713,9 @@ class AsyncLamResource(AsyncAPIResource):
|
|
|
666
713
|
|
|
667
714
|
stream: Whether the response should be streamed back or not.
|
|
668
715
|
|
|
716
|
+
advanced: Advanced configuration options for the task, such as ad-blocking and CAPTCHA
|
|
717
|
+
solving.
|
|
718
|
+
|
|
669
719
|
app_url: This is the entrypoint URL for the web agent.
|
|
670
720
|
|
|
671
721
|
chat_history: The history of the conversation as a list of messages or objects you might use
|
|
@@ -693,6 +743,7 @@ class AsyncLamResource(AsyncAPIResource):
|
|
|
693
743
|
query: str,
|
|
694
744
|
raccoon_passcode: str,
|
|
695
745
|
stream: bool,
|
|
746
|
+
advanced: Optional[lam_extract_params.Advanced] | NotGiven = NOT_GIVEN,
|
|
696
747
|
app_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
697
748
|
chat_history: Optional[Iterable[object]] | NotGiven = NOT_GIVEN,
|
|
698
749
|
max_count: Optional[int] | NotGiven = NOT_GIVEN,
|
|
@@ -716,6 +767,9 @@ class AsyncLamResource(AsyncAPIResource):
|
|
|
716
767
|
|
|
717
768
|
stream: Whether the response should be streamed back or not.
|
|
718
769
|
|
|
770
|
+
advanced: Advanced configuration options for the task, such as ad-blocking and CAPTCHA
|
|
771
|
+
solving.
|
|
772
|
+
|
|
719
773
|
app_url: This is the entrypoint URL for the web agent.
|
|
720
774
|
|
|
721
775
|
chat_history: The history of the conversation as a list of messages or objects you might use
|
|
@@ -742,6 +796,7 @@ class AsyncLamResource(AsyncAPIResource):
|
|
|
742
796
|
*,
|
|
743
797
|
query: str,
|
|
744
798
|
raccoon_passcode: str,
|
|
799
|
+
advanced: Optional[lam_extract_params.Advanced] | NotGiven = NOT_GIVEN,
|
|
745
800
|
app_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
746
801
|
chat_history: Optional[Iterable[object]] | NotGiven = NOT_GIVEN,
|
|
747
802
|
max_count: Optional[int] | NotGiven = NOT_GIVEN,
|
|
@@ -760,6 +815,7 @@ class AsyncLamResource(AsyncAPIResource):
|
|
|
760
815
|
{
|
|
761
816
|
"query": query,
|
|
762
817
|
"raccoon_passcode": raccoon_passcode,
|
|
818
|
+
"advanced": advanced,
|
|
763
819
|
"app_url": app_url,
|
|
764
820
|
"chat_history": chat_history,
|
|
765
821
|
"max_count": max_count,
|
|
@@ -782,6 +838,7 @@ class AsyncLamResource(AsyncAPIResource):
|
|
|
782
838
|
app_name: str,
|
|
783
839
|
*,
|
|
784
840
|
raccoon_passcode: str,
|
|
841
|
+
advanced: Optional[lam_integration_run_params.Advanced] | NotGiven = NOT_GIVEN,
|
|
785
842
|
integration_id: Optional[str] | NotGiven = NOT_GIVEN,
|
|
786
843
|
properties: Optional[object] | NotGiven = NOT_GIVEN,
|
|
787
844
|
stream: Optional[Literal[False]] | NotGiven = NOT_GIVEN,
|
|
@@ -799,6 +856,9 @@ class AsyncLamResource(AsyncAPIResource):
|
|
|
799
856
|
raccoon_passcode: The raccoon passcode associated with the end user on behalf of which the call is
|
|
800
857
|
being made.
|
|
801
858
|
|
|
859
|
+
advanced: Advanced configuration options for the task, such as ad-blocking and CAPTCHA
|
|
860
|
+
solving.
|
|
861
|
+
|
|
802
862
|
integration_id: The unique identifier for the integration being called.
|
|
803
863
|
|
|
804
864
|
properties: Additional properties or data related to the particular integration.
|
|
@@ -822,6 +882,7 @@ class AsyncLamResource(AsyncAPIResource):
|
|
|
822
882
|
*,
|
|
823
883
|
raccoon_passcode: str,
|
|
824
884
|
stream: Literal[True],
|
|
885
|
+
advanced: Optional[lam_integration_run_params.Advanced] | NotGiven = NOT_GIVEN,
|
|
825
886
|
integration_id: Optional[str] | NotGiven = NOT_GIVEN,
|
|
826
887
|
properties: Optional[object] | NotGiven = NOT_GIVEN,
|
|
827
888
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -840,6 +901,9 @@ class AsyncLamResource(AsyncAPIResource):
|
|
|
840
901
|
|
|
841
902
|
stream: Whether the response should be streamed back or not.
|
|
842
903
|
|
|
904
|
+
advanced: Advanced configuration options for the task, such as ad-blocking and CAPTCHA
|
|
905
|
+
solving.
|
|
906
|
+
|
|
843
907
|
integration_id: The unique identifier for the integration being called.
|
|
844
908
|
|
|
845
909
|
properties: Additional properties or data related to the particular integration.
|
|
@@ -861,6 +925,7 @@ class AsyncLamResource(AsyncAPIResource):
|
|
|
861
925
|
*,
|
|
862
926
|
raccoon_passcode: str,
|
|
863
927
|
stream: bool,
|
|
928
|
+
advanced: Optional[lam_integration_run_params.Advanced] | NotGiven = NOT_GIVEN,
|
|
864
929
|
integration_id: Optional[str] | NotGiven = NOT_GIVEN,
|
|
865
930
|
properties: Optional[object] | NotGiven = NOT_GIVEN,
|
|
866
931
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -879,6 +944,9 @@ class AsyncLamResource(AsyncAPIResource):
|
|
|
879
944
|
|
|
880
945
|
stream: Whether the response should be streamed back or not.
|
|
881
946
|
|
|
947
|
+
advanced: Advanced configuration options for the task, such as ad-blocking and CAPTCHA
|
|
948
|
+
solving.
|
|
949
|
+
|
|
882
950
|
integration_id: The unique identifier for the integration being called.
|
|
883
951
|
|
|
884
952
|
properties: Additional properties or data related to the particular integration.
|
|
@@ -899,6 +967,7 @@ class AsyncLamResource(AsyncAPIResource):
|
|
|
899
967
|
app_name: str,
|
|
900
968
|
*,
|
|
901
969
|
raccoon_passcode: str,
|
|
970
|
+
advanced: Optional[lam_integration_run_params.Advanced] | NotGiven = NOT_GIVEN,
|
|
902
971
|
integration_id: Optional[str] | NotGiven = NOT_GIVEN,
|
|
903
972
|
properties: Optional[object] | NotGiven = NOT_GIVEN,
|
|
904
973
|
stream: Optional[Literal[False]] | Literal[True] | NotGiven = NOT_GIVEN,
|
|
@@ -918,6 +987,7 @@ class AsyncLamResource(AsyncAPIResource):
|
|
|
918
987
|
body=await async_maybe_transform(
|
|
919
988
|
{
|
|
920
989
|
"raccoon_passcode": raccoon_passcode,
|
|
990
|
+
"advanced": advanced,
|
|
921
991
|
"integration_id": integration_id,
|
|
922
992
|
"properties": properties,
|
|
923
993
|
"stream": stream,
|
|
@@ -941,6 +1011,7 @@ class AsyncLamResource(AsyncAPIResource):
|
|
|
941
1011
|
*,
|
|
942
1012
|
query: str,
|
|
943
1013
|
raccoon_passcode: str,
|
|
1014
|
+
advanced: Optional[lam_run_params.Advanced] | NotGiven = NOT_GIVEN,
|
|
944
1015
|
app_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
945
1016
|
chat_history: Optional[Iterable[object]] | NotGiven = NOT_GIVEN,
|
|
946
1017
|
stream: Optional[Literal[False]] | NotGiven = NOT_GIVEN,
|
|
@@ -961,6 +1032,9 @@ class AsyncLamResource(AsyncAPIResource):
|
|
|
961
1032
|
raccoon_passcode: The raccoon passcode associated with the end user on behalf of which the call is
|
|
962
1033
|
being made.
|
|
963
1034
|
|
|
1035
|
+
advanced: Advanced configuration options for the task, such as ad-blocking and CAPTCHA
|
|
1036
|
+
solving.
|
|
1037
|
+
|
|
964
1038
|
app_url: This is the entrypoint URL for the web agent.
|
|
965
1039
|
|
|
966
1040
|
chat_history: The history of the conversation as a list of messages or objects you might use
|
|
@@ -985,6 +1059,7 @@ class AsyncLamResource(AsyncAPIResource):
|
|
|
985
1059
|
query: str,
|
|
986
1060
|
raccoon_passcode: str,
|
|
987
1061
|
stream: Literal[True],
|
|
1062
|
+
advanced: Optional[lam_run_params.Advanced] | NotGiven = NOT_GIVEN,
|
|
988
1063
|
app_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
989
1064
|
chat_history: Optional[Iterable[object]] | NotGiven = NOT_GIVEN,
|
|
990
1065
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -1006,6 +1081,9 @@ class AsyncLamResource(AsyncAPIResource):
|
|
|
1006
1081
|
|
|
1007
1082
|
stream: Whether the response should be streamed back or not.
|
|
1008
1083
|
|
|
1084
|
+
advanced: Advanced configuration options for the task, such as ad-blocking and CAPTCHA
|
|
1085
|
+
solving.
|
|
1086
|
+
|
|
1009
1087
|
app_url: This is the entrypoint URL for the web agent.
|
|
1010
1088
|
|
|
1011
1089
|
chat_history: The history of the conversation as a list of messages or objects you might use
|
|
@@ -1028,6 +1106,7 @@ class AsyncLamResource(AsyncAPIResource):
|
|
|
1028
1106
|
query: str,
|
|
1029
1107
|
raccoon_passcode: str,
|
|
1030
1108
|
stream: bool,
|
|
1109
|
+
advanced: Optional[lam_run_params.Advanced] | NotGiven = NOT_GIVEN,
|
|
1031
1110
|
app_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
1032
1111
|
chat_history: Optional[Iterable[object]] | NotGiven = NOT_GIVEN,
|
|
1033
1112
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -1049,6 +1128,9 @@ class AsyncLamResource(AsyncAPIResource):
|
|
|
1049
1128
|
|
|
1050
1129
|
stream: Whether the response should be streamed back or not.
|
|
1051
1130
|
|
|
1131
|
+
advanced: Advanced configuration options for the task, such as ad-blocking and CAPTCHA
|
|
1132
|
+
solving.
|
|
1133
|
+
|
|
1052
1134
|
app_url: This is the entrypoint URL for the web agent.
|
|
1053
1135
|
|
|
1054
1136
|
chat_history: The history of the conversation as a list of messages or objects you might use
|
|
@@ -1070,6 +1152,7 @@ class AsyncLamResource(AsyncAPIResource):
|
|
|
1070
1152
|
*,
|
|
1071
1153
|
query: str,
|
|
1072
1154
|
raccoon_passcode: str,
|
|
1155
|
+
advanced: Optional[lam_run_params.Advanced] | NotGiven = NOT_GIVEN,
|
|
1073
1156
|
app_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
1074
1157
|
chat_history: Optional[Iterable[object]] | NotGiven = NOT_GIVEN,
|
|
1075
1158
|
stream: Optional[Literal[False]] | Literal[True] | NotGiven = NOT_GIVEN,
|
|
@@ -1086,6 +1169,7 @@ class AsyncLamResource(AsyncAPIResource):
|
|
|
1086
1169
|
{
|
|
1087
1170
|
"query": query,
|
|
1088
1171
|
"raccoon_passcode": raccoon_passcode,
|
|
1172
|
+
"advanced": advanced,
|
|
1089
1173
|
"app_url": app_url,
|
|
1090
1174
|
"chat_history": chat_history,
|
|
1091
1175
|
"stream": stream,
|
|
@@ -5,7 +5,7 @@ from __future__ import annotations
|
|
|
5
5
|
from typing import Union, Iterable, Optional
|
|
6
6
|
from typing_extensions import Literal, Required, TypedDict
|
|
7
7
|
|
|
8
|
-
__all__ = ["LamExtractParamsBase", "LamExtractParamsNonStreaming", "LamExtractParamsStreaming"]
|
|
8
|
+
__all__ = ["LamExtractParamsBase", "Advanced", "LamExtractParamsNonStreaming", "LamExtractParamsStreaming"]
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class LamExtractParamsBase(TypedDict, total=False):
|
|
@@ -18,6 +18,12 @@ class LamExtractParamsBase(TypedDict, total=False):
|
|
|
18
18
|
being made.
|
|
19
19
|
"""
|
|
20
20
|
|
|
21
|
+
advanced: Optional[Advanced]
|
|
22
|
+
"""
|
|
23
|
+
Advanced configuration options for the task, such as ad-blocking and CAPTCHA
|
|
24
|
+
solving.
|
|
25
|
+
"""
|
|
26
|
+
|
|
21
27
|
app_url: Optional[str]
|
|
22
28
|
"""This is the entrypoint URL for the web agent."""
|
|
23
29
|
|
|
@@ -38,6 +44,17 @@ class LamExtractParamsBase(TypedDict, total=False):
|
|
|
38
44
|
"""
|
|
39
45
|
|
|
40
46
|
|
|
47
|
+
class Advanced(TypedDict, total=False):
|
|
48
|
+
block_ads: Optional[bool]
|
|
49
|
+
"""Whether to block advertisements during the browser session."""
|
|
50
|
+
|
|
51
|
+
proxy: Optional[bool]
|
|
52
|
+
"""Whether to use a proxy for the browser session."""
|
|
53
|
+
|
|
54
|
+
solve_captchas: Optional[bool]
|
|
55
|
+
"""Whether to attempt automatic CAPTCHA solving."""
|
|
56
|
+
|
|
57
|
+
|
|
41
58
|
class LamExtractParamsNonStreaming(LamExtractParamsBase, total=False):
|
|
42
59
|
stream: Optional[Literal[False]]
|
|
43
60
|
"""Whether the response should be streamed back or not."""
|
|
@@ -5,7 +5,12 @@ from __future__ import annotations
|
|
|
5
5
|
from typing import Union, Optional
|
|
6
6
|
from typing_extensions import Literal, Required, TypedDict
|
|
7
7
|
|
|
8
|
-
__all__ = [
|
|
8
|
+
__all__ = [
|
|
9
|
+
"LamIntegrationRunParamsBase",
|
|
10
|
+
"Advanced",
|
|
11
|
+
"LamIntegrationRunParamsNonStreaming",
|
|
12
|
+
"LamIntegrationRunParamsStreaming",
|
|
13
|
+
]
|
|
9
14
|
|
|
10
15
|
|
|
11
16
|
class LamIntegrationRunParamsBase(TypedDict, total=False):
|
|
@@ -15,6 +20,12 @@ class LamIntegrationRunParamsBase(TypedDict, total=False):
|
|
|
15
20
|
being made.
|
|
16
21
|
"""
|
|
17
22
|
|
|
23
|
+
advanced: Optional[Advanced]
|
|
24
|
+
"""
|
|
25
|
+
Advanced configuration options for the task, such as ad-blocking and CAPTCHA
|
|
26
|
+
solving.
|
|
27
|
+
"""
|
|
28
|
+
|
|
18
29
|
integration_id: Optional[str]
|
|
19
30
|
"""The unique identifier for the integration being called."""
|
|
20
31
|
|
|
@@ -22,6 +33,17 @@ class LamIntegrationRunParamsBase(TypedDict, total=False):
|
|
|
22
33
|
"""Additional properties or data related to the particular integration."""
|
|
23
34
|
|
|
24
35
|
|
|
36
|
+
class Advanced(TypedDict, total=False):
|
|
37
|
+
block_ads: Optional[bool]
|
|
38
|
+
"""Whether to block advertisements during the browser session."""
|
|
39
|
+
|
|
40
|
+
proxy: Optional[bool]
|
|
41
|
+
"""Whether to use a proxy for the browser session."""
|
|
42
|
+
|
|
43
|
+
solve_captchas: Optional[bool]
|
|
44
|
+
"""Whether to attempt automatic CAPTCHA solving."""
|
|
45
|
+
|
|
46
|
+
|
|
25
47
|
class LamIntegrationRunParamsNonStreaming(LamIntegrationRunParamsBase, total=False):
|
|
26
48
|
stream: Optional[Literal[False]]
|
|
27
49
|
"""Whether the response should be streamed back or not."""
|
|
@@ -12,6 +12,9 @@ class UnionMember0(BaseModel):
|
|
|
12
12
|
integration_id: str
|
|
13
13
|
"""A unique identifier for the integration in use."""
|
|
14
14
|
|
|
15
|
+
livestream_url: str
|
|
16
|
+
"""The Livestream URL"""
|
|
17
|
+
|
|
15
18
|
message: str
|
|
16
19
|
"""A message providing the thought summary if the status is processing currently."""
|
|
17
20
|
|
|
@@ -19,7 +22,7 @@ class UnionMember0(BaseModel):
|
|
|
19
22
|
"""Additional metadata or details related to the integration task."""
|
|
20
23
|
|
|
21
24
|
task_status: str
|
|
22
|
-
"""The current status of the
|
|
25
|
+
"""The current status of the integration task.
|
|
23
26
|
|
|
24
27
|
For example: 'STARTING', 'PROCESSING', 'DONE', 'HUMAN_INTERACTION', or
|
|
25
28
|
'FAILURE'.
|
|
@@ -30,6 +33,9 @@ class IntegrationResponse(BaseModel):
|
|
|
30
33
|
integration_id: str
|
|
31
34
|
"""A unique identifier for the integration in use."""
|
|
32
35
|
|
|
36
|
+
livestream_url: str
|
|
37
|
+
"""The Livestream URL"""
|
|
38
|
+
|
|
33
39
|
message: str
|
|
34
40
|
"""A message providing the thought summary if the status is processing currently."""
|
|
35
41
|
|
|
@@ -37,7 +43,7 @@ class IntegrationResponse(BaseModel):
|
|
|
37
43
|
"""Additional metadata or details related to the integration task."""
|
|
38
44
|
|
|
39
45
|
task_status: str
|
|
40
|
-
"""The current status of the
|
|
46
|
+
"""The current status of the integration task.
|
|
41
47
|
|
|
42
48
|
For example: 'STARTING', 'PROCESSING', 'DONE', 'HUMAN_INTERACTION', or
|
|
43
49
|
'FAILURE'.
|
|
@@ -5,7 +5,7 @@ from __future__ import annotations
|
|
|
5
5
|
from typing import Union, Iterable, Optional
|
|
6
6
|
from typing_extensions import Literal, Required, TypedDict
|
|
7
7
|
|
|
8
|
-
__all__ = ["LamRunParamsBase", "LamRunParamsNonStreaming", "LamRunParamsStreaming"]
|
|
8
|
+
__all__ = ["LamRunParamsBase", "Advanced", "LamRunParamsNonStreaming", "LamRunParamsStreaming"]
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class LamRunParamsBase(TypedDict, total=False):
|
|
@@ -18,6 +18,12 @@ class LamRunParamsBase(TypedDict, total=False):
|
|
|
18
18
|
being made.
|
|
19
19
|
"""
|
|
20
20
|
|
|
21
|
+
advanced: Optional[Advanced]
|
|
22
|
+
"""
|
|
23
|
+
Advanced configuration options for the task, such as ad-blocking and CAPTCHA
|
|
24
|
+
solving.
|
|
25
|
+
"""
|
|
26
|
+
|
|
21
27
|
app_url: Optional[str]
|
|
22
28
|
"""This is the entrypoint URL for the web agent."""
|
|
23
29
|
|
|
@@ -28,6 +34,17 @@ class LamRunParamsBase(TypedDict, total=False):
|
|
|
28
34
|
"""
|
|
29
35
|
|
|
30
36
|
|
|
37
|
+
class Advanced(TypedDict, total=False):
|
|
38
|
+
block_ads: Optional[bool]
|
|
39
|
+
"""Whether to block advertisements during the browser session."""
|
|
40
|
+
|
|
41
|
+
proxy: Optional[bool]
|
|
42
|
+
"""Whether to use a proxy for the browser session."""
|
|
43
|
+
|
|
44
|
+
solve_captchas: Optional[bool]
|
|
45
|
+
"""Whether to attempt automatic CAPTCHA solving."""
|
|
46
|
+
|
|
47
|
+
|
|
31
48
|
class LamRunParamsNonStreaming(LamRunParamsBase, total=False):
|
|
32
49
|
stream: Optional[Literal[False]]
|
|
33
50
|
"""Whether the response should be streamed back or not."""
|
|
@@ -7,6 +7,9 @@ __all__ = ["LamRunResponse"]
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
class LamRunResponse(BaseModel):
|
|
10
|
+
livestream_url: str
|
|
11
|
+
"""The Livestream URL"""
|
|
12
|
+
|
|
10
13
|
message: str
|
|
11
14
|
"""A message providing the thought summary if the status is processing currently."""
|
|
12
15
|
|
|
@@ -14,7 +17,7 @@ class LamRunResponse(BaseModel):
|
|
|
14
17
|
"""Additional metadata or details related to the run task."""
|
|
15
18
|
|
|
16
19
|
task_status: str
|
|
17
|
-
"""The current status of the
|
|
20
|
+
"""The current status of the run task.
|
|
18
21
|
|
|
19
22
|
For example: 'STARTING', 'PROCESSING', 'DONE', 'HUMAN_INTERACTION', or
|
|
20
23
|
'FAILURE'.
|
|
@@ -34,6 +34,11 @@ class TestLam:
|
|
|
34
34
|
lam = client.lam.extract(
|
|
35
35
|
query="Find YCombinator startups who got funded in W24.",
|
|
36
36
|
raccoon_passcode="<end-user-raccoon-passcode>",
|
|
37
|
+
advanced={
|
|
38
|
+
"block_ads": True,
|
|
39
|
+
"proxy": True,
|
|
40
|
+
"solve_captchas": True,
|
|
41
|
+
},
|
|
37
42
|
app_url="https://www.ycombinator.com/companies",
|
|
38
43
|
chat_history=[{}],
|
|
39
44
|
max_count=5,
|
|
@@ -90,6 +95,11 @@ class TestLam:
|
|
|
90
95
|
query="Find YCombinator startups who got funded in W24.",
|
|
91
96
|
raccoon_passcode="<end-user-raccoon-passcode>",
|
|
92
97
|
stream=True,
|
|
98
|
+
advanced={
|
|
99
|
+
"block_ads": True,
|
|
100
|
+
"proxy": True,
|
|
101
|
+
"solve_captchas": True,
|
|
102
|
+
},
|
|
93
103
|
app_url="https://www.ycombinator.com/companies",
|
|
94
104
|
chat_history=[{}],
|
|
95
105
|
max_count=5,
|
|
@@ -144,6 +154,11 @@ class TestLam:
|
|
|
144
154
|
lam = client.lam.integration_run(
|
|
145
155
|
app_name="app_name",
|
|
146
156
|
raccoon_passcode="raccoon_passcode",
|
|
157
|
+
advanced={
|
|
158
|
+
"block_ads": True,
|
|
159
|
+
"proxy": True,
|
|
160
|
+
"solve_captchas": True,
|
|
161
|
+
},
|
|
147
162
|
integration_id="integration_id",
|
|
148
163
|
properties={},
|
|
149
164
|
stream=False,
|
|
@@ -199,6 +214,11 @@ class TestLam:
|
|
|
199
214
|
app_name="app_name",
|
|
200
215
|
raccoon_passcode="raccoon_passcode",
|
|
201
216
|
stream=True,
|
|
217
|
+
advanced={
|
|
218
|
+
"block_ads": True,
|
|
219
|
+
"proxy": True,
|
|
220
|
+
"solve_captchas": True,
|
|
221
|
+
},
|
|
202
222
|
integration_id="integration_id",
|
|
203
223
|
properties={},
|
|
204
224
|
)
|
|
@@ -253,6 +273,11 @@ class TestLam:
|
|
|
253
273
|
lam = client.lam.run(
|
|
254
274
|
query="Find the price of iphone 16 on Amazon.",
|
|
255
275
|
raccoon_passcode="<end-user-raccoon-passcode>",
|
|
276
|
+
advanced={
|
|
277
|
+
"block_ads": True,
|
|
278
|
+
"proxy": True,
|
|
279
|
+
"solve_captchas": True,
|
|
280
|
+
},
|
|
256
281
|
app_url="https://www.amazon.com",
|
|
257
282
|
chat_history=[{}],
|
|
258
283
|
stream=False,
|
|
@@ -300,6 +325,11 @@ class TestLam:
|
|
|
300
325
|
query="Find the price of iphone 16 on Amazon.",
|
|
301
326
|
raccoon_passcode="<end-user-raccoon-passcode>",
|
|
302
327
|
stream=True,
|
|
328
|
+
advanced={
|
|
329
|
+
"block_ads": True,
|
|
330
|
+
"proxy": True,
|
|
331
|
+
"solve_captchas": True,
|
|
332
|
+
},
|
|
303
333
|
app_url="https://www.amazon.com",
|
|
304
334
|
chat_history=[{}],
|
|
305
335
|
)
|
|
@@ -349,6 +379,11 @@ class TestAsyncLam:
|
|
|
349
379
|
lam = await async_client.lam.extract(
|
|
350
380
|
query="Find YCombinator startups who got funded in W24.",
|
|
351
381
|
raccoon_passcode="<end-user-raccoon-passcode>",
|
|
382
|
+
advanced={
|
|
383
|
+
"block_ads": True,
|
|
384
|
+
"proxy": True,
|
|
385
|
+
"solve_captchas": True,
|
|
386
|
+
},
|
|
352
387
|
app_url="https://www.ycombinator.com/companies",
|
|
353
388
|
chat_history=[{}],
|
|
354
389
|
max_count=5,
|
|
@@ -405,6 +440,11 @@ class TestAsyncLam:
|
|
|
405
440
|
query="Find YCombinator startups who got funded in W24.",
|
|
406
441
|
raccoon_passcode="<end-user-raccoon-passcode>",
|
|
407
442
|
stream=True,
|
|
443
|
+
advanced={
|
|
444
|
+
"block_ads": True,
|
|
445
|
+
"proxy": True,
|
|
446
|
+
"solve_captchas": True,
|
|
447
|
+
},
|
|
408
448
|
app_url="https://www.ycombinator.com/companies",
|
|
409
449
|
chat_history=[{}],
|
|
410
450
|
max_count=5,
|
|
@@ -459,6 +499,11 @@ class TestAsyncLam:
|
|
|
459
499
|
lam = await async_client.lam.integration_run(
|
|
460
500
|
app_name="app_name",
|
|
461
501
|
raccoon_passcode="raccoon_passcode",
|
|
502
|
+
advanced={
|
|
503
|
+
"block_ads": True,
|
|
504
|
+
"proxy": True,
|
|
505
|
+
"solve_captchas": True,
|
|
506
|
+
},
|
|
462
507
|
integration_id="integration_id",
|
|
463
508
|
properties={},
|
|
464
509
|
stream=False,
|
|
@@ -514,6 +559,11 @@ class TestAsyncLam:
|
|
|
514
559
|
app_name="app_name",
|
|
515
560
|
raccoon_passcode="raccoon_passcode",
|
|
516
561
|
stream=True,
|
|
562
|
+
advanced={
|
|
563
|
+
"block_ads": True,
|
|
564
|
+
"proxy": True,
|
|
565
|
+
"solve_captchas": True,
|
|
566
|
+
},
|
|
517
567
|
integration_id="integration_id",
|
|
518
568
|
properties={},
|
|
519
569
|
)
|
|
@@ -568,6 +618,11 @@ class TestAsyncLam:
|
|
|
568
618
|
lam = await async_client.lam.run(
|
|
569
619
|
query="Find the price of iphone 16 on Amazon.",
|
|
570
620
|
raccoon_passcode="<end-user-raccoon-passcode>",
|
|
621
|
+
advanced={
|
|
622
|
+
"block_ads": True,
|
|
623
|
+
"proxy": True,
|
|
624
|
+
"solve_captchas": True,
|
|
625
|
+
},
|
|
571
626
|
app_url="https://www.amazon.com",
|
|
572
627
|
chat_history=[{}],
|
|
573
628
|
stream=False,
|
|
@@ -615,6 +670,11 @@ class TestAsyncLam:
|
|
|
615
670
|
query="Find the price of iphone 16 on Amazon.",
|
|
616
671
|
raccoon_passcode="<end-user-raccoon-passcode>",
|
|
617
672
|
stream=True,
|
|
673
|
+
advanced={
|
|
674
|
+
"block_ads": True,
|
|
675
|
+
"proxy": True,
|
|
676
|
+
"solve_captchas": True,
|
|
677
|
+
},
|
|
618
678
|
app_url="https://www.amazon.com",
|
|
619
679
|
chat_history=[{}],
|
|
620
680
|
)
|
raccoonai-0.1.0a1/CHANGELOG.md
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
## 0.1.0-alpha.1 (2025-01-24)
|
|
4
|
-
|
|
5
|
-
Full Changelog: [v0.0.1-alpha.0...v0.1.0-alpha.1](https://github.com/flyingraccoonai/raccoonai-python/compare/v0.0.1-alpha.0...v0.1.0-alpha.1)
|
|
6
|
-
|
|
7
|
-
### Features
|
|
8
|
-
|
|
9
|
-
* **api:** update via SDK Studio ([b4beda1](https://github.com/flyingraccoonai/raccoonai-python/commit/b4beda18093cfb681ade68610e307b7ce07fa4d2))
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|