raccoonai 0.1.0a1__py3-none-any.whl

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.

Potentially problematic release.


This version of raccoonai might be problematic. Click here for more details.

Files changed (44) hide show
  1. raccoonai/__init__.py +96 -0
  2. raccoonai/_base_client.py +2051 -0
  3. raccoonai/_client.py +473 -0
  4. raccoonai/_compat.py +219 -0
  5. raccoonai/_constants.py +14 -0
  6. raccoonai/_exceptions.py +108 -0
  7. raccoonai/_files.py +123 -0
  8. raccoonai/_models.py +795 -0
  9. raccoonai/_qs.py +150 -0
  10. raccoonai/_resource.py +43 -0
  11. raccoonai/_response.py +830 -0
  12. raccoonai/_streaming.py +333 -0
  13. raccoonai/_types.py +217 -0
  14. raccoonai/_utils/__init__.py +57 -0
  15. raccoonai/_utils/_logs.py +25 -0
  16. raccoonai/_utils/_proxy.py +62 -0
  17. raccoonai/_utils/_reflection.py +42 -0
  18. raccoonai/_utils/_streams.py +12 -0
  19. raccoonai/_utils/_sync.py +71 -0
  20. raccoonai/_utils/_transform.py +392 -0
  21. raccoonai/_utils/_typing.py +149 -0
  22. raccoonai/_utils/_utils.py +414 -0
  23. raccoonai/_version.py +4 -0
  24. raccoonai/lib/.keep +4 -0
  25. raccoonai/py.typed +0 -0
  26. raccoonai/resources/__init__.py +33 -0
  27. raccoonai/resources/fleet.py +485 -0
  28. raccoonai/resources/lam.py +1161 -0
  29. raccoonai/types/__init__.py +15 -0
  30. raccoonai/types/fleet_create_params.py +77 -0
  31. raccoonai/types/fleet_create_response.py +20 -0
  32. raccoonai/types/fleet_logs_response.py +14 -0
  33. raccoonai/types/fleet_status_response.py +17 -0
  34. raccoonai/types/fleet_terminate_response.py +17 -0
  35. raccoonai/types/lam_extract_params.py +51 -0
  36. raccoonai/types/lam_extract_response.py +28 -0
  37. raccoonai/types/lam_integration_run_params.py +35 -0
  38. raccoonai/types/lam_integration_run_response.py +47 -0
  39. raccoonai/types/lam_run_params.py +41 -0
  40. raccoonai/types/lam_run_response.py +21 -0
  41. raccoonai-0.1.0a1.dist-info/METADATA +422 -0
  42. raccoonai-0.1.0a1.dist-info/RECORD +44 -0
  43. raccoonai-0.1.0a1.dist-info/WHEEL +4 -0
  44. raccoonai-0.1.0a1.dist-info/licenses/LICENSE +201 -0
@@ -0,0 +1,1161 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Any, Iterable, Optional, cast
6
+ from typing_extensions import Literal, overload
7
+
8
+ import httpx
9
+
10
+ from ..types import lam_run_params, lam_extract_params, lam_integration_run_params
11
+ from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
12
+ from .._utils import (
13
+ required_args,
14
+ maybe_transform,
15
+ async_maybe_transform,
16
+ )
17
+ from .._compat import cached_property
18
+ from .._resource import SyncAPIResource, AsyncAPIResource
19
+ from .._response import (
20
+ to_raw_response_wrapper,
21
+ to_streamed_response_wrapper,
22
+ async_to_raw_response_wrapper,
23
+ async_to_streamed_response_wrapper,
24
+ )
25
+ from .._streaming import Stream, AsyncStream
26
+ from .._base_client import make_request_options
27
+ from ..types.lam_run_response import LamRunResponse
28
+ from ..types.lam_extract_response import LamExtractResponse
29
+ from ..types.lam_integration_run_response import LamIntegrationRunResponse
30
+
31
+ __all__ = ["LamResource", "AsyncLamResource"]
32
+
33
+
34
+ class LamResource(SyncAPIResource):
35
+ @cached_property
36
+ def with_raw_response(self) -> LamResourceWithRawResponse:
37
+ """
38
+ This property can be used as a prefix for any HTTP method call to return
39
+ the raw response object instead of the parsed content.
40
+
41
+ For more information, see https://www.github.com/flyingraccoonai/raccoonai-python#accessing-raw-response-data-eg-headers
42
+ """
43
+ return LamResourceWithRawResponse(self)
44
+
45
+ @cached_property
46
+ def with_streaming_response(self) -> LamResourceWithStreamingResponse:
47
+ """
48
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
49
+
50
+ For more information, see https://www.github.com/flyingraccoonai/raccoonai-python#with_streaming_response
51
+ """
52
+ return LamResourceWithStreamingResponse(self)
53
+
54
+ @overload
55
+ def extract(
56
+ self,
57
+ *,
58
+ query: str,
59
+ raccoon_passcode: str,
60
+ app_url: Optional[str] | NotGiven = NOT_GIVEN,
61
+ chat_history: Optional[Iterable[object]] | NotGiven = NOT_GIVEN,
62
+ max_count: Optional[int] | NotGiven = NOT_GIVEN,
63
+ schema: object | NotGiven = NOT_GIVEN,
64
+ stream: Optional[Literal[False]] | NotGiven = NOT_GIVEN,
65
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
66
+ # The extra values given here take precedence over values defined on the client or passed to this method.
67
+ extra_headers: Headers | None = None,
68
+ extra_query: Query | None = None,
69
+ extra_body: Body | None = None,
70
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
71
+ ) -> LamExtractResponse:
72
+ """Lam Extract Endpoint
73
+
74
+ Args:
75
+ query: The input query string for the request.
76
+
77
+ This is typically the main prompt.
78
+
79
+ raccoon_passcode: The raccoon passcode associated with the end user on behalf of which the call is
80
+ being made.
81
+
82
+ app_url: This is the entrypoint URL for the web agent.
83
+
84
+ chat_history: The history of the conversation as a list of messages or objects you might use
85
+ while building a chat app to give the model context of the past conversation.
86
+
87
+ max_count: The maximum number of results to extract.
88
+
89
+ schema: The expected schema for the response. This is a dictionary where the keys
90
+ describe the fields and the values describe their purposes.
91
+
92
+ stream: Whether the response should be streamed back or not.
93
+
94
+ extra_headers: Send extra headers
95
+
96
+ extra_query: Add additional query parameters to the request
97
+
98
+ extra_body: Add additional JSON properties to the request
99
+
100
+ timeout: Override the client-level default timeout for this request, in seconds
101
+ """
102
+ ...
103
+
104
+ @overload
105
+ def extract(
106
+ self,
107
+ *,
108
+ query: str,
109
+ raccoon_passcode: str,
110
+ stream: Literal[True],
111
+ app_url: Optional[str] | NotGiven = NOT_GIVEN,
112
+ chat_history: Optional[Iterable[object]] | NotGiven = NOT_GIVEN,
113
+ max_count: Optional[int] | NotGiven = NOT_GIVEN,
114
+ schema: object | NotGiven = NOT_GIVEN,
115
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
116
+ # The extra values given here take precedence over values defined on the client or passed to this method.
117
+ extra_headers: Headers | None = None,
118
+ extra_query: Query | None = None,
119
+ extra_body: Body | None = None,
120
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
121
+ ) -> Stream[LamExtractResponse]:
122
+ """Lam Extract Endpoint
123
+
124
+ Args:
125
+ query: The input query string for the request.
126
+
127
+ This is typically the main prompt.
128
+
129
+ raccoon_passcode: The raccoon passcode associated with the end user on behalf of which the call is
130
+ being made.
131
+
132
+ stream: Whether the response should be streamed back or not.
133
+
134
+ app_url: This is the entrypoint URL for the web agent.
135
+
136
+ chat_history: The history of the conversation as a list of messages or objects you might use
137
+ while building a chat app to give the model context of the past conversation.
138
+
139
+ max_count: The maximum number of results to extract.
140
+
141
+ schema: The expected schema for the response. This is a dictionary where the keys
142
+ describe the fields and the values describe their purposes.
143
+
144
+ extra_headers: Send extra headers
145
+
146
+ extra_query: Add additional query parameters to the request
147
+
148
+ extra_body: Add additional JSON properties to the request
149
+
150
+ timeout: Override the client-level default timeout for this request, in seconds
151
+ """
152
+ ...
153
+
154
+ @overload
155
+ def extract(
156
+ self,
157
+ *,
158
+ query: str,
159
+ raccoon_passcode: str,
160
+ stream: bool,
161
+ app_url: Optional[str] | NotGiven = NOT_GIVEN,
162
+ chat_history: Optional[Iterable[object]] | NotGiven = NOT_GIVEN,
163
+ max_count: Optional[int] | NotGiven = NOT_GIVEN,
164
+ schema: object | NotGiven = NOT_GIVEN,
165
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
166
+ # The extra values given here take precedence over values defined on the client or passed to this method.
167
+ extra_headers: Headers | None = None,
168
+ extra_query: Query | None = None,
169
+ extra_body: Body | None = None,
170
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
171
+ ) -> LamExtractResponse | Stream[LamExtractResponse]:
172
+ """Lam Extract Endpoint
173
+
174
+ Args:
175
+ query: The input query string for the request.
176
+
177
+ This is typically the main prompt.
178
+
179
+ raccoon_passcode: The raccoon passcode associated with the end user on behalf of which the call is
180
+ being made.
181
+
182
+ stream: Whether the response should be streamed back or not.
183
+
184
+ app_url: This is the entrypoint URL for the web agent.
185
+
186
+ chat_history: The history of the conversation as a list of messages or objects you might use
187
+ while building a chat app to give the model context of the past conversation.
188
+
189
+ max_count: The maximum number of results to extract.
190
+
191
+ schema: The expected schema for the response. This is a dictionary where the keys
192
+ describe the fields and the values describe their purposes.
193
+
194
+ extra_headers: Send extra headers
195
+
196
+ extra_query: Add additional query parameters to the request
197
+
198
+ extra_body: Add additional JSON properties to the request
199
+
200
+ timeout: Override the client-level default timeout for this request, in seconds
201
+ """
202
+ ...
203
+
204
+ @required_args(["query", "raccoon_passcode"], ["query", "raccoon_passcode", "stream"])
205
+ def extract(
206
+ self,
207
+ *,
208
+ query: str,
209
+ raccoon_passcode: str,
210
+ app_url: Optional[str] | NotGiven = NOT_GIVEN,
211
+ chat_history: Optional[Iterable[object]] | NotGiven = NOT_GIVEN,
212
+ max_count: Optional[int] | NotGiven = NOT_GIVEN,
213
+ schema: object | NotGiven = NOT_GIVEN,
214
+ stream: Optional[Literal[False]] | Literal[True] | NotGiven = NOT_GIVEN,
215
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
216
+ # The extra values given here take precedence over values defined on the client or passed to this method.
217
+ extra_headers: Headers | None = None,
218
+ extra_query: Query | None = None,
219
+ extra_body: Body | None = None,
220
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
221
+ ) -> LamExtractResponse | Stream[LamExtractResponse]:
222
+ return self._post(
223
+ "/lam/extract",
224
+ body=maybe_transform(
225
+ {
226
+ "query": query,
227
+ "raccoon_passcode": raccoon_passcode,
228
+ "app_url": app_url,
229
+ "chat_history": chat_history,
230
+ "max_count": max_count,
231
+ "schema": schema,
232
+ "stream": stream,
233
+ },
234
+ lam_extract_params.LamExtractParams,
235
+ ),
236
+ options=make_request_options(
237
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
238
+ ),
239
+ cast_to=LamExtractResponse,
240
+ stream=stream or False,
241
+ stream_cls=Stream[LamExtractResponse],
242
+ )
243
+
244
+ @overload
245
+ def integration_run(
246
+ self,
247
+ app_name: str,
248
+ *,
249
+ raccoon_passcode: str,
250
+ integration_id: Optional[str] | NotGiven = NOT_GIVEN,
251
+ properties: Optional[object] | NotGiven = NOT_GIVEN,
252
+ stream: Optional[Literal[False]] | NotGiven = NOT_GIVEN,
253
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
254
+ # The extra values given here take precedence over values defined on the client or passed to this method.
255
+ extra_headers: Headers | None = None,
256
+ extra_query: Query | None = None,
257
+ extra_body: Body | None = None,
258
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
259
+ ) -> LamIntegrationRunResponse:
260
+ """
261
+ Lam Integrations Endpoint
262
+
263
+ Args:
264
+ raccoon_passcode: The raccoon passcode associated with the end user on behalf of which the call is
265
+ being made.
266
+
267
+ integration_id: The unique identifier for the integration being called.
268
+
269
+ properties: Additional properties or data related to the particular integration.
270
+
271
+ stream: Whether the response should be streamed back or not.
272
+
273
+ extra_headers: Send extra headers
274
+
275
+ extra_query: Add additional query parameters to the request
276
+
277
+ extra_body: Add additional JSON properties to the request
278
+
279
+ timeout: Override the client-level default timeout for this request, in seconds
280
+ """
281
+ ...
282
+
283
+ @overload
284
+ def integration_run(
285
+ self,
286
+ app_name: str,
287
+ *,
288
+ raccoon_passcode: str,
289
+ stream: Literal[True],
290
+ integration_id: Optional[str] | NotGiven = NOT_GIVEN,
291
+ properties: Optional[object] | NotGiven = NOT_GIVEN,
292
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
293
+ # The extra values given here take precedence over values defined on the client or passed to this method.
294
+ extra_headers: Headers | None = None,
295
+ extra_query: Query | None = None,
296
+ extra_body: Body | None = None,
297
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
298
+ ) -> Stream[LamIntegrationRunResponse]:
299
+ """
300
+ Lam Integrations Endpoint
301
+
302
+ Args:
303
+ raccoon_passcode: The raccoon passcode associated with the end user on behalf of which the call is
304
+ being made.
305
+
306
+ stream: Whether the response should be streamed back or not.
307
+
308
+ integration_id: The unique identifier for the integration being called.
309
+
310
+ properties: Additional properties or data related to the particular integration.
311
+
312
+ extra_headers: Send extra headers
313
+
314
+ extra_query: Add additional query parameters to the request
315
+
316
+ extra_body: Add additional JSON properties to the request
317
+
318
+ timeout: Override the client-level default timeout for this request, in seconds
319
+ """
320
+ ...
321
+
322
+ @overload
323
+ def integration_run(
324
+ self,
325
+ app_name: str,
326
+ *,
327
+ raccoon_passcode: str,
328
+ stream: bool,
329
+ integration_id: Optional[str] | NotGiven = NOT_GIVEN,
330
+ properties: Optional[object] | NotGiven = NOT_GIVEN,
331
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
332
+ # The extra values given here take precedence over values defined on the client or passed to this method.
333
+ extra_headers: Headers | None = None,
334
+ extra_query: Query | None = None,
335
+ extra_body: Body | None = None,
336
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
337
+ ) -> LamIntegrationRunResponse | Stream[LamIntegrationRunResponse]:
338
+ """
339
+ Lam Integrations Endpoint
340
+
341
+ Args:
342
+ raccoon_passcode: The raccoon passcode associated with the end user on behalf of which the call is
343
+ being made.
344
+
345
+ stream: Whether the response should be streamed back or not.
346
+
347
+ integration_id: The unique identifier for the integration being called.
348
+
349
+ properties: Additional properties or data related to the particular integration.
350
+
351
+ extra_headers: Send extra headers
352
+
353
+ extra_query: Add additional query parameters to the request
354
+
355
+ extra_body: Add additional JSON properties to the request
356
+
357
+ timeout: Override the client-level default timeout for this request, in seconds
358
+ """
359
+ ...
360
+
361
+ @required_args(["raccoon_passcode"], ["raccoon_passcode", "stream"])
362
+ def integration_run(
363
+ self,
364
+ app_name: str,
365
+ *,
366
+ raccoon_passcode: str,
367
+ integration_id: Optional[str] | NotGiven = NOT_GIVEN,
368
+ properties: Optional[object] | NotGiven = NOT_GIVEN,
369
+ stream: Optional[Literal[False]] | Literal[True] | NotGiven = NOT_GIVEN,
370
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
371
+ # The extra values given here take precedence over values defined on the client or passed to this method.
372
+ extra_headers: Headers | None = None,
373
+ extra_query: Query | None = None,
374
+ extra_body: Body | None = None,
375
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
376
+ ) -> LamIntegrationRunResponse | Stream[LamIntegrationRunResponse]:
377
+ if not app_name:
378
+ raise ValueError(f"Expected a non-empty value for `app_name` but received {app_name!r}")
379
+ return cast(
380
+ LamIntegrationRunResponse,
381
+ self._post(
382
+ f"/lam/{app_name}/run",
383
+ body=maybe_transform(
384
+ {
385
+ "raccoon_passcode": raccoon_passcode,
386
+ "integration_id": integration_id,
387
+ "properties": properties,
388
+ "stream": stream,
389
+ },
390
+ lam_integration_run_params.LamIntegrationRunParams,
391
+ ),
392
+ options=make_request_options(
393
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
394
+ ),
395
+ cast_to=cast(
396
+ Any, LamIntegrationRunResponse
397
+ ), # Union types cannot be passed in as arguments in the type system
398
+ stream=stream or False,
399
+ stream_cls=Stream[LamIntegrationRunResponse],
400
+ ),
401
+ )
402
+
403
+ @overload
404
+ def run(
405
+ self,
406
+ *,
407
+ query: str,
408
+ raccoon_passcode: str,
409
+ app_url: Optional[str] | NotGiven = NOT_GIVEN,
410
+ chat_history: Optional[Iterable[object]] | NotGiven = NOT_GIVEN,
411
+ stream: Optional[Literal[False]] | NotGiven = NOT_GIVEN,
412
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
413
+ # The extra values given here take precedence over values defined on the client or passed to this method.
414
+ extra_headers: Headers | None = None,
415
+ extra_query: Query | None = None,
416
+ extra_body: Body | None = None,
417
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
418
+ ) -> LamRunResponse:
419
+ """Lam Run Endpoint
420
+
421
+ Args:
422
+ query: The input query string for the request.
423
+
424
+ This is typically the main prompt.
425
+
426
+ raccoon_passcode: The raccoon passcode associated with the end user on behalf of which the call is
427
+ being made.
428
+
429
+ app_url: This is the entrypoint URL for the web agent.
430
+
431
+ chat_history: The history of the conversation as a list of messages or objects you might use
432
+ while building a chat app to give the model context of the past conversation.
433
+
434
+ stream: Whether the response should be streamed back or not.
435
+
436
+ extra_headers: Send extra headers
437
+
438
+ extra_query: Add additional query parameters to the request
439
+
440
+ extra_body: Add additional JSON properties to the request
441
+
442
+ timeout: Override the client-level default timeout for this request, in seconds
443
+ """
444
+ ...
445
+
446
+ @overload
447
+ def run(
448
+ self,
449
+ *,
450
+ query: str,
451
+ raccoon_passcode: str,
452
+ stream: Literal[True],
453
+ app_url: Optional[str] | NotGiven = NOT_GIVEN,
454
+ chat_history: Optional[Iterable[object]] | NotGiven = NOT_GIVEN,
455
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
456
+ # The extra values given here take precedence over values defined on the client or passed to this method.
457
+ extra_headers: Headers | None = None,
458
+ extra_query: Query | None = None,
459
+ extra_body: Body | None = None,
460
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
461
+ ) -> Stream[LamRunResponse]:
462
+ """Lam Run Endpoint
463
+
464
+ Args:
465
+ query: The input query string for the request.
466
+
467
+ This is typically the main prompt.
468
+
469
+ raccoon_passcode: The raccoon passcode associated with the end user on behalf of which the call is
470
+ being made.
471
+
472
+ stream: Whether the response should be streamed back or not.
473
+
474
+ app_url: This is the entrypoint URL for the web agent.
475
+
476
+ chat_history: The history of the conversation as a list of messages or objects you might use
477
+ while building a chat app to give the model context of the past conversation.
478
+
479
+ extra_headers: Send extra headers
480
+
481
+ extra_query: Add additional query parameters to the request
482
+
483
+ extra_body: Add additional JSON properties to the request
484
+
485
+ timeout: Override the client-level default timeout for this request, in seconds
486
+ """
487
+ ...
488
+
489
+ @overload
490
+ def run(
491
+ self,
492
+ *,
493
+ query: str,
494
+ raccoon_passcode: str,
495
+ stream: bool,
496
+ app_url: Optional[str] | NotGiven = NOT_GIVEN,
497
+ chat_history: Optional[Iterable[object]] | NotGiven = NOT_GIVEN,
498
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
499
+ # The extra values given here take precedence over values defined on the client or passed to this method.
500
+ extra_headers: Headers | None = None,
501
+ extra_query: Query | None = None,
502
+ extra_body: Body | None = None,
503
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
504
+ ) -> LamRunResponse | Stream[LamRunResponse]:
505
+ """Lam Run Endpoint
506
+
507
+ Args:
508
+ query: The input query string for the request.
509
+
510
+ This is typically the main prompt.
511
+
512
+ raccoon_passcode: The raccoon passcode associated with the end user on behalf of which the call is
513
+ being made.
514
+
515
+ stream: Whether the response should be streamed back or not.
516
+
517
+ app_url: This is the entrypoint URL for the web agent.
518
+
519
+ chat_history: The history of the conversation as a list of messages or objects you might use
520
+ while building a chat app to give the model context of the past conversation.
521
+
522
+ extra_headers: Send extra headers
523
+
524
+ extra_query: Add additional query parameters to the request
525
+
526
+ extra_body: Add additional JSON properties to the request
527
+
528
+ timeout: Override the client-level default timeout for this request, in seconds
529
+ """
530
+ ...
531
+
532
+ @required_args(["query", "raccoon_passcode"], ["query", "raccoon_passcode", "stream"])
533
+ def run(
534
+ self,
535
+ *,
536
+ query: str,
537
+ raccoon_passcode: str,
538
+ app_url: Optional[str] | NotGiven = NOT_GIVEN,
539
+ chat_history: Optional[Iterable[object]] | NotGiven = NOT_GIVEN,
540
+ stream: Optional[Literal[False]] | Literal[True] | NotGiven = NOT_GIVEN,
541
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
542
+ # The extra values given here take precedence over values defined on the client or passed to this method.
543
+ extra_headers: Headers | None = None,
544
+ extra_query: Query | None = None,
545
+ extra_body: Body | None = None,
546
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
547
+ ) -> LamRunResponse | Stream[LamRunResponse]:
548
+ return self._post(
549
+ "/lam/run",
550
+ body=maybe_transform(
551
+ {
552
+ "query": query,
553
+ "raccoon_passcode": raccoon_passcode,
554
+ "app_url": app_url,
555
+ "chat_history": chat_history,
556
+ "stream": stream,
557
+ },
558
+ lam_run_params.LamRunParams,
559
+ ),
560
+ options=make_request_options(
561
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
562
+ ),
563
+ cast_to=LamRunResponse,
564
+ stream=stream or False,
565
+ stream_cls=Stream[LamRunResponse],
566
+ )
567
+
568
+
569
+ class AsyncLamResource(AsyncAPIResource):
570
+ @cached_property
571
+ def with_raw_response(self) -> AsyncLamResourceWithRawResponse:
572
+ """
573
+ This property can be used as a prefix for any HTTP method call to return
574
+ the raw response object instead of the parsed content.
575
+
576
+ For more information, see https://www.github.com/flyingraccoonai/raccoonai-python#accessing-raw-response-data-eg-headers
577
+ """
578
+ return AsyncLamResourceWithRawResponse(self)
579
+
580
+ @cached_property
581
+ def with_streaming_response(self) -> AsyncLamResourceWithStreamingResponse:
582
+ """
583
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
584
+
585
+ For more information, see https://www.github.com/flyingraccoonai/raccoonai-python#with_streaming_response
586
+ """
587
+ return AsyncLamResourceWithStreamingResponse(self)
588
+
589
+ @overload
590
+ async def extract(
591
+ self,
592
+ *,
593
+ query: str,
594
+ raccoon_passcode: str,
595
+ app_url: Optional[str] | NotGiven = NOT_GIVEN,
596
+ chat_history: Optional[Iterable[object]] | NotGiven = NOT_GIVEN,
597
+ max_count: Optional[int] | NotGiven = NOT_GIVEN,
598
+ schema: object | NotGiven = NOT_GIVEN,
599
+ stream: Optional[Literal[False]] | NotGiven = NOT_GIVEN,
600
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
601
+ # The extra values given here take precedence over values defined on the client or passed to this method.
602
+ extra_headers: Headers | None = None,
603
+ extra_query: Query | None = None,
604
+ extra_body: Body | None = None,
605
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
606
+ ) -> LamExtractResponse:
607
+ """Lam Extract Endpoint
608
+
609
+ Args:
610
+ query: The input query string for the request.
611
+
612
+ This is typically the main prompt.
613
+
614
+ raccoon_passcode: The raccoon passcode associated with the end user on behalf of which the call is
615
+ being made.
616
+
617
+ app_url: This is the entrypoint URL for the web agent.
618
+
619
+ chat_history: The history of the conversation as a list of messages or objects you might use
620
+ while building a chat app to give the model context of the past conversation.
621
+
622
+ max_count: The maximum number of results to extract.
623
+
624
+ schema: The expected schema for the response. This is a dictionary where the keys
625
+ describe the fields and the values describe their purposes.
626
+
627
+ stream: Whether the response should be streamed back or not.
628
+
629
+ extra_headers: Send extra headers
630
+
631
+ extra_query: Add additional query parameters to the request
632
+
633
+ extra_body: Add additional JSON properties to the request
634
+
635
+ timeout: Override the client-level default timeout for this request, in seconds
636
+ """
637
+ ...
638
+
639
+ @overload
640
+ async def extract(
641
+ self,
642
+ *,
643
+ query: str,
644
+ raccoon_passcode: str,
645
+ stream: Literal[True],
646
+ app_url: Optional[str] | NotGiven = NOT_GIVEN,
647
+ chat_history: Optional[Iterable[object]] | NotGiven = NOT_GIVEN,
648
+ max_count: Optional[int] | NotGiven = NOT_GIVEN,
649
+ schema: object | NotGiven = NOT_GIVEN,
650
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
651
+ # The extra values given here take precedence over values defined on the client or passed to this method.
652
+ extra_headers: Headers | None = None,
653
+ extra_query: Query | None = None,
654
+ extra_body: Body | None = None,
655
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
656
+ ) -> AsyncStream[LamExtractResponse]:
657
+ """Lam Extract Endpoint
658
+
659
+ Args:
660
+ query: The input query string for the request.
661
+
662
+ This is typically the main prompt.
663
+
664
+ raccoon_passcode: The raccoon passcode associated with the end user on behalf of which the call is
665
+ being made.
666
+
667
+ stream: Whether the response should be streamed back or not.
668
+
669
+ app_url: This is the entrypoint URL for the web agent.
670
+
671
+ chat_history: The history of the conversation as a list of messages or objects you might use
672
+ while building a chat app to give the model context of the past conversation.
673
+
674
+ max_count: The maximum number of results to extract.
675
+
676
+ schema: The expected schema for the response. This is a dictionary where the keys
677
+ describe the fields and the values describe their purposes.
678
+
679
+ extra_headers: Send extra headers
680
+
681
+ extra_query: Add additional query parameters to the request
682
+
683
+ extra_body: Add additional JSON properties to the request
684
+
685
+ timeout: Override the client-level default timeout for this request, in seconds
686
+ """
687
+ ...
688
+
689
+ @overload
690
+ async def extract(
691
+ self,
692
+ *,
693
+ query: str,
694
+ raccoon_passcode: str,
695
+ stream: bool,
696
+ app_url: Optional[str] | NotGiven = NOT_GIVEN,
697
+ chat_history: Optional[Iterable[object]] | NotGiven = NOT_GIVEN,
698
+ max_count: Optional[int] | NotGiven = NOT_GIVEN,
699
+ schema: object | NotGiven = NOT_GIVEN,
700
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
701
+ # The extra values given here take precedence over values defined on the client or passed to this method.
702
+ extra_headers: Headers | None = None,
703
+ extra_query: Query | None = None,
704
+ extra_body: Body | None = None,
705
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
706
+ ) -> LamExtractResponse | AsyncStream[LamExtractResponse]:
707
+ """Lam Extract Endpoint
708
+
709
+ Args:
710
+ query: The input query string for the request.
711
+
712
+ This is typically the main prompt.
713
+
714
+ raccoon_passcode: The raccoon passcode associated with the end user on behalf of which the call is
715
+ being made.
716
+
717
+ stream: Whether the response should be streamed back or not.
718
+
719
+ app_url: This is the entrypoint URL for the web agent.
720
+
721
+ chat_history: The history of the conversation as a list of messages or objects you might use
722
+ while building a chat app to give the model context of the past conversation.
723
+
724
+ max_count: The maximum number of results to extract.
725
+
726
+ schema: The expected schema for the response. This is a dictionary where the keys
727
+ describe the fields and the values describe their purposes.
728
+
729
+ extra_headers: Send extra headers
730
+
731
+ extra_query: Add additional query parameters to the request
732
+
733
+ extra_body: Add additional JSON properties to the request
734
+
735
+ timeout: Override the client-level default timeout for this request, in seconds
736
+ """
737
+ ...
738
+
739
+ @required_args(["query", "raccoon_passcode"], ["query", "raccoon_passcode", "stream"])
740
+ async def extract(
741
+ self,
742
+ *,
743
+ query: str,
744
+ raccoon_passcode: str,
745
+ app_url: Optional[str] | NotGiven = NOT_GIVEN,
746
+ chat_history: Optional[Iterable[object]] | NotGiven = NOT_GIVEN,
747
+ max_count: Optional[int] | NotGiven = NOT_GIVEN,
748
+ schema: object | NotGiven = NOT_GIVEN,
749
+ stream: Optional[Literal[False]] | Literal[True] | NotGiven = NOT_GIVEN,
750
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
751
+ # The extra values given here take precedence over values defined on the client or passed to this method.
752
+ extra_headers: Headers | None = None,
753
+ extra_query: Query | None = None,
754
+ extra_body: Body | None = None,
755
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
756
+ ) -> LamExtractResponse | AsyncStream[LamExtractResponse]:
757
+ return await self._post(
758
+ "/lam/extract",
759
+ body=await async_maybe_transform(
760
+ {
761
+ "query": query,
762
+ "raccoon_passcode": raccoon_passcode,
763
+ "app_url": app_url,
764
+ "chat_history": chat_history,
765
+ "max_count": max_count,
766
+ "schema": schema,
767
+ "stream": stream,
768
+ },
769
+ lam_extract_params.LamExtractParams,
770
+ ),
771
+ options=make_request_options(
772
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
773
+ ),
774
+ cast_to=LamExtractResponse,
775
+ stream=stream or False,
776
+ stream_cls=AsyncStream[LamExtractResponse],
777
+ )
778
+
779
+ @overload
780
+ async def integration_run(
781
+ self,
782
+ app_name: str,
783
+ *,
784
+ raccoon_passcode: str,
785
+ integration_id: Optional[str] | NotGiven = NOT_GIVEN,
786
+ properties: Optional[object] | NotGiven = NOT_GIVEN,
787
+ stream: Optional[Literal[False]] | NotGiven = NOT_GIVEN,
788
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
789
+ # The extra values given here take precedence over values defined on the client or passed to this method.
790
+ extra_headers: Headers | None = None,
791
+ extra_query: Query | None = None,
792
+ extra_body: Body | None = None,
793
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
794
+ ) -> LamIntegrationRunResponse:
795
+ """
796
+ Lam Integrations Endpoint
797
+
798
+ Args:
799
+ raccoon_passcode: The raccoon passcode associated with the end user on behalf of which the call is
800
+ being made.
801
+
802
+ integration_id: The unique identifier for the integration being called.
803
+
804
+ properties: Additional properties or data related to the particular integration.
805
+
806
+ stream: Whether the response should be streamed back or not.
807
+
808
+ extra_headers: Send extra headers
809
+
810
+ extra_query: Add additional query parameters to the request
811
+
812
+ extra_body: Add additional JSON properties to the request
813
+
814
+ timeout: Override the client-level default timeout for this request, in seconds
815
+ """
816
+ ...
817
+
818
+ @overload
819
+ async def integration_run(
820
+ self,
821
+ app_name: str,
822
+ *,
823
+ raccoon_passcode: str,
824
+ stream: Literal[True],
825
+ integration_id: Optional[str] | NotGiven = NOT_GIVEN,
826
+ properties: Optional[object] | NotGiven = NOT_GIVEN,
827
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
828
+ # The extra values given here take precedence over values defined on the client or passed to this method.
829
+ extra_headers: Headers | None = None,
830
+ extra_query: Query | None = None,
831
+ extra_body: Body | None = None,
832
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
833
+ ) -> AsyncStream[LamIntegrationRunResponse]:
834
+ """
835
+ Lam Integrations Endpoint
836
+
837
+ Args:
838
+ raccoon_passcode: The raccoon passcode associated with the end user on behalf of which the call is
839
+ being made.
840
+
841
+ stream: Whether the response should be streamed back or not.
842
+
843
+ integration_id: The unique identifier for the integration being called.
844
+
845
+ properties: Additional properties or data related to the particular integration.
846
+
847
+ extra_headers: Send extra headers
848
+
849
+ extra_query: Add additional query parameters to the request
850
+
851
+ extra_body: Add additional JSON properties to the request
852
+
853
+ timeout: Override the client-level default timeout for this request, in seconds
854
+ """
855
+ ...
856
+
857
+ @overload
858
+ async def integration_run(
859
+ self,
860
+ app_name: str,
861
+ *,
862
+ raccoon_passcode: str,
863
+ stream: bool,
864
+ integration_id: Optional[str] | NotGiven = NOT_GIVEN,
865
+ properties: Optional[object] | NotGiven = NOT_GIVEN,
866
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
867
+ # The extra values given here take precedence over values defined on the client or passed to this method.
868
+ extra_headers: Headers | None = None,
869
+ extra_query: Query | None = None,
870
+ extra_body: Body | None = None,
871
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
872
+ ) -> LamIntegrationRunResponse | AsyncStream[LamIntegrationRunResponse]:
873
+ """
874
+ Lam Integrations Endpoint
875
+
876
+ Args:
877
+ raccoon_passcode: The raccoon passcode associated with the end user on behalf of which the call is
878
+ being made.
879
+
880
+ stream: Whether the response should be streamed back or not.
881
+
882
+ integration_id: The unique identifier for the integration being called.
883
+
884
+ properties: Additional properties or data related to the particular integration.
885
+
886
+ extra_headers: Send extra headers
887
+
888
+ extra_query: Add additional query parameters to the request
889
+
890
+ extra_body: Add additional JSON properties to the request
891
+
892
+ timeout: Override the client-level default timeout for this request, in seconds
893
+ """
894
+ ...
895
+
896
+ @required_args(["raccoon_passcode"], ["raccoon_passcode", "stream"])
897
+ async def integration_run(
898
+ self,
899
+ app_name: str,
900
+ *,
901
+ raccoon_passcode: str,
902
+ integration_id: Optional[str] | NotGiven = NOT_GIVEN,
903
+ properties: Optional[object] | NotGiven = NOT_GIVEN,
904
+ stream: Optional[Literal[False]] | Literal[True] | NotGiven = NOT_GIVEN,
905
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
906
+ # The extra values given here take precedence over values defined on the client or passed to this method.
907
+ extra_headers: Headers | None = None,
908
+ extra_query: Query | None = None,
909
+ extra_body: Body | None = None,
910
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
911
+ ) -> LamIntegrationRunResponse | AsyncStream[LamIntegrationRunResponse]:
912
+ if not app_name:
913
+ raise ValueError(f"Expected a non-empty value for `app_name` but received {app_name!r}")
914
+ return cast(
915
+ LamIntegrationRunResponse,
916
+ await self._post(
917
+ f"/lam/{app_name}/run",
918
+ body=await async_maybe_transform(
919
+ {
920
+ "raccoon_passcode": raccoon_passcode,
921
+ "integration_id": integration_id,
922
+ "properties": properties,
923
+ "stream": stream,
924
+ },
925
+ lam_integration_run_params.LamIntegrationRunParams,
926
+ ),
927
+ options=make_request_options(
928
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
929
+ ),
930
+ cast_to=cast(
931
+ Any, LamIntegrationRunResponse
932
+ ), # Union types cannot be passed in as arguments in the type system
933
+ stream=stream or False,
934
+ stream_cls=AsyncStream[LamIntegrationRunResponse],
935
+ ),
936
+ )
937
+
938
+ @overload
939
+ async def run(
940
+ self,
941
+ *,
942
+ query: str,
943
+ raccoon_passcode: str,
944
+ app_url: Optional[str] | NotGiven = NOT_GIVEN,
945
+ chat_history: Optional[Iterable[object]] | NotGiven = NOT_GIVEN,
946
+ stream: Optional[Literal[False]] | NotGiven = NOT_GIVEN,
947
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
948
+ # The extra values given here take precedence over values defined on the client or passed to this method.
949
+ extra_headers: Headers | None = None,
950
+ extra_query: Query | None = None,
951
+ extra_body: Body | None = None,
952
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
953
+ ) -> LamRunResponse:
954
+ """Lam Run Endpoint
955
+
956
+ Args:
957
+ query: The input query string for the request.
958
+
959
+ This is typically the main prompt.
960
+
961
+ raccoon_passcode: The raccoon passcode associated with the end user on behalf of which the call is
962
+ being made.
963
+
964
+ app_url: This is the entrypoint URL for the web agent.
965
+
966
+ chat_history: The history of the conversation as a list of messages or objects you might use
967
+ while building a chat app to give the model context of the past conversation.
968
+
969
+ stream: Whether the response should be streamed back or not.
970
+
971
+ extra_headers: Send extra headers
972
+
973
+ extra_query: Add additional query parameters to the request
974
+
975
+ extra_body: Add additional JSON properties to the request
976
+
977
+ timeout: Override the client-level default timeout for this request, in seconds
978
+ """
979
+ ...
980
+
981
+ @overload
982
+ async def run(
983
+ self,
984
+ *,
985
+ query: str,
986
+ raccoon_passcode: str,
987
+ stream: Literal[True],
988
+ app_url: Optional[str] | NotGiven = NOT_GIVEN,
989
+ chat_history: Optional[Iterable[object]] | NotGiven = NOT_GIVEN,
990
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
991
+ # The extra values given here take precedence over values defined on the client or passed to this method.
992
+ extra_headers: Headers | None = None,
993
+ extra_query: Query | None = None,
994
+ extra_body: Body | None = None,
995
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
996
+ ) -> AsyncStream[LamRunResponse]:
997
+ """Lam Run Endpoint
998
+
999
+ Args:
1000
+ query: The input query string for the request.
1001
+
1002
+ This is typically the main prompt.
1003
+
1004
+ raccoon_passcode: The raccoon passcode associated with the end user on behalf of which the call is
1005
+ being made.
1006
+
1007
+ stream: Whether the response should be streamed back or not.
1008
+
1009
+ app_url: This is the entrypoint URL for the web agent.
1010
+
1011
+ chat_history: The history of the conversation as a list of messages or objects you might use
1012
+ while building a chat app to give the model context of the past conversation.
1013
+
1014
+ extra_headers: Send extra headers
1015
+
1016
+ extra_query: Add additional query parameters to the request
1017
+
1018
+ extra_body: Add additional JSON properties to the request
1019
+
1020
+ timeout: Override the client-level default timeout for this request, in seconds
1021
+ """
1022
+ ...
1023
+
1024
+ @overload
1025
+ async def run(
1026
+ self,
1027
+ *,
1028
+ query: str,
1029
+ raccoon_passcode: str,
1030
+ stream: bool,
1031
+ app_url: Optional[str] | NotGiven = NOT_GIVEN,
1032
+ chat_history: Optional[Iterable[object]] | NotGiven = NOT_GIVEN,
1033
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1034
+ # The extra values given here take precedence over values defined on the client or passed to this method.
1035
+ extra_headers: Headers | None = None,
1036
+ extra_query: Query | None = None,
1037
+ extra_body: Body | None = None,
1038
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
1039
+ ) -> LamRunResponse | AsyncStream[LamRunResponse]:
1040
+ """Lam Run Endpoint
1041
+
1042
+ Args:
1043
+ query: The input query string for the request.
1044
+
1045
+ This is typically the main prompt.
1046
+
1047
+ raccoon_passcode: The raccoon passcode associated with the end user on behalf of which the call is
1048
+ being made.
1049
+
1050
+ stream: Whether the response should be streamed back or not.
1051
+
1052
+ app_url: This is the entrypoint URL for the web agent.
1053
+
1054
+ chat_history: The history of the conversation as a list of messages or objects you might use
1055
+ while building a chat app to give the model context of the past conversation.
1056
+
1057
+ extra_headers: Send extra headers
1058
+
1059
+ extra_query: Add additional query parameters to the request
1060
+
1061
+ extra_body: Add additional JSON properties to the request
1062
+
1063
+ timeout: Override the client-level default timeout for this request, in seconds
1064
+ """
1065
+ ...
1066
+
1067
+ @required_args(["query", "raccoon_passcode"], ["query", "raccoon_passcode", "stream"])
1068
+ async def run(
1069
+ self,
1070
+ *,
1071
+ query: str,
1072
+ raccoon_passcode: str,
1073
+ app_url: Optional[str] | NotGiven = NOT_GIVEN,
1074
+ chat_history: Optional[Iterable[object]] | NotGiven = NOT_GIVEN,
1075
+ stream: Optional[Literal[False]] | Literal[True] | NotGiven = NOT_GIVEN,
1076
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1077
+ # The extra values given here take precedence over values defined on the client or passed to this method.
1078
+ extra_headers: Headers | None = None,
1079
+ extra_query: Query | None = None,
1080
+ extra_body: Body | None = None,
1081
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
1082
+ ) -> LamRunResponse | AsyncStream[LamRunResponse]:
1083
+ return await self._post(
1084
+ "/lam/run",
1085
+ body=await async_maybe_transform(
1086
+ {
1087
+ "query": query,
1088
+ "raccoon_passcode": raccoon_passcode,
1089
+ "app_url": app_url,
1090
+ "chat_history": chat_history,
1091
+ "stream": stream,
1092
+ },
1093
+ lam_run_params.LamRunParams,
1094
+ ),
1095
+ options=make_request_options(
1096
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
1097
+ ),
1098
+ cast_to=LamRunResponse,
1099
+ stream=stream or False,
1100
+ stream_cls=AsyncStream[LamRunResponse],
1101
+ )
1102
+
1103
+
1104
+ class LamResourceWithRawResponse:
1105
+ def __init__(self, lam: LamResource) -> None:
1106
+ self._lam = lam
1107
+
1108
+ self.extract = to_raw_response_wrapper(
1109
+ lam.extract,
1110
+ )
1111
+ self.integration_run = to_raw_response_wrapper(
1112
+ lam.integration_run,
1113
+ )
1114
+ self.run = to_raw_response_wrapper(
1115
+ lam.run,
1116
+ )
1117
+
1118
+
1119
+ class AsyncLamResourceWithRawResponse:
1120
+ def __init__(self, lam: AsyncLamResource) -> None:
1121
+ self._lam = lam
1122
+
1123
+ self.extract = async_to_raw_response_wrapper(
1124
+ lam.extract,
1125
+ )
1126
+ self.integration_run = async_to_raw_response_wrapper(
1127
+ lam.integration_run,
1128
+ )
1129
+ self.run = async_to_raw_response_wrapper(
1130
+ lam.run,
1131
+ )
1132
+
1133
+
1134
+ class LamResourceWithStreamingResponse:
1135
+ def __init__(self, lam: LamResource) -> None:
1136
+ self._lam = lam
1137
+
1138
+ self.extract = to_streamed_response_wrapper(
1139
+ lam.extract,
1140
+ )
1141
+ self.integration_run = to_streamed_response_wrapper(
1142
+ lam.integration_run,
1143
+ )
1144
+ self.run = to_streamed_response_wrapper(
1145
+ lam.run,
1146
+ )
1147
+
1148
+
1149
+ class AsyncLamResourceWithStreamingResponse:
1150
+ def __init__(self, lam: AsyncLamResource) -> None:
1151
+ self._lam = lam
1152
+
1153
+ self.extract = async_to_streamed_response_wrapper(
1154
+ lam.extract,
1155
+ )
1156
+ self.integration_run = async_to_streamed_response_wrapper(
1157
+ lam.integration_run,
1158
+ )
1159
+ self.run = async_to_streamed_response_wrapper(
1160
+ lam.run,
1161
+ )