nimble_python 0.22.0__py3-none-any.whl → 0.24.0__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.
- nimble_python/_client.py +38 -9
- nimble_python/_version.py +1 -1
- nimble_python/resources/__init__.py +14 -0
- nimble_python/resources/agent.py +84 -39
- nimble_python/resources/fast_serp.py +293 -0
- nimble_python/resources/jobs/jobs.py +122 -53
- nimble_python/resources/jobs/runs/artifacts.py +80 -50
- nimble_python/resources/jobs/runs/runs.py +55 -24
- nimble_python/resources/task_agent/runs.py +117 -142
- nimble_python/resources/task_agent/task_agent.py +241 -96
- nimble_python/resources/task_agent/templates.py +41 -29
- nimble_python/types/__init__.py +2 -0
- nimble_python/types/agent_generate_params.py +8 -8
- nimble_python/types/client_extract_async_params.py +2 -0
- nimble_python/types/client_extract_batch_params.py +4 -0
- nimble_python/types/client_extract_params.py +2 -0
- nimble_python/types/client_search_params.py +1 -4
- nimble_python/types/crawl_run_params.py +2 -0
- nimble_python/types/fast_serp_run_params.py +64 -0
- nimble_python/types/fast_serp_run_response.py +339 -0
- nimble_python/types/job_create_params.py +1 -0
- nimble_python/types/job_create_response.py +1 -0
- nimble_python/types/job_get_response.py +1 -0
- nimble_python/types/job_list_response.py +6 -5
- nimble_python/types/job_update_params.py +1 -0
- nimble_python/types/job_update_response.py +1 -0
- nimble_python/types/jobs/run_list_response.py +5 -5
- nimble_python/types/jobs/runs/artifact_get_response.py +2 -7
- nimble_python/types/jobs/runs/artifact_list_response.py +2 -7
- nimble_python/types/task_agent/run_get_response.py +15 -8
- nimble_python/types/task_agent/run_get_result_response.py +247 -92
- nimble_python/types/task_agent/run_list_response.py +30 -12
- nimble_python/types/task_agent/template_get_response.py +25 -1
- nimble_python/types/task_agent/template_list_params.py +0 -5
- nimble_python/types/task_agent/template_list_response.py +46 -17
- nimble_python/types/task_agent_create_params.py +27 -5
- nimble_python/types/task_agent_create_response.py +40 -9
- nimble_python/types/task_agent_get_response.py +40 -9
- nimble_python/types/task_agent_list_params.py +1 -3
- nimble_python/types/task_agent_list_response.py +67 -25
- nimble_python/types/task_agent_run_params.py +30 -2
- nimble_python/types/task_agent_run_response.py +15 -8
- nimble_python/types/task_agent_update_params.py +16 -4
- nimble_python/types/task_agent_update_response.py +40 -9
- {nimble_python-0.22.0.dist-info → nimble_python-0.24.0.dist-info}/METADATA +1 -1
- {nimble_python-0.22.0.dist-info → nimble_python-0.24.0.dist-info}/RECORD +48 -45
- {nimble_python-0.22.0.dist-info → nimble_python-0.24.0.dist-info}/WHEEL +0 -0
- {nimble_python-0.22.0.dist-info → nimble_python-0.24.0.dist-info}/licenses/LICENSE +0 -0
nimble_python/_client.py
CHANGED
|
@@ -61,13 +61,14 @@ from .types.extract_async_response import ExtractAsyncResponse
|
|
|
61
61
|
from .types.extract_batch_response import ExtractBatchResponse
|
|
62
62
|
|
|
63
63
|
if TYPE_CHECKING:
|
|
64
|
-
from .resources import jobs, serp, agent, crawl, media, tasks, batches, task_agent, domain_knowledge
|
|
64
|
+
from .resources import jobs, serp, agent, crawl, media, tasks, batches, fast_serp, task_agent, domain_knowledge
|
|
65
65
|
from .resources.serp import SerpResource, AsyncSerpResource
|
|
66
66
|
from .resources.agent import AgentResource, AsyncAgentResource
|
|
67
67
|
from .resources.crawl import CrawlResource, AsyncCrawlResource
|
|
68
68
|
from .resources.media import MediaResource, AsyncMediaResource
|
|
69
69
|
from .resources.tasks import TasksResource, AsyncTasksResource
|
|
70
70
|
from .resources.batches import BatchesResource, AsyncBatchesResource
|
|
71
|
+
from .resources.fast_serp import FastSerpResource, AsyncFastSerpResource
|
|
71
72
|
from .resources.jobs.jobs import JobsResource, AsyncJobsResource
|
|
72
73
|
from .resources.domain_knowledge import DomainKnowledgeResource, AsyncDomainKnowledgeResource
|
|
73
74
|
from .resources.task_agent.task_agent import TaskAgentResource, AsyncTaskAgentResource
|
|
@@ -185,6 +186,12 @@ class Nimble(SyncAPIClient):
|
|
|
185
186
|
|
|
186
187
|
return SerpResource(self)
|
|
187
188
|
|
|
189
|
+
@cached_property
|
|
190
|
+
def fast_serp(self) -> FastSerpResource:
|
|
191
|
+
from .resources.fast_serp import FastSerpResource
|
|
192
|
+
|
|
193
|
+
return FastSerpResource(self)
|
|
194
|
+
|
|
188
195
|
@cached_property
|
|
189
196
|
def task_agent(self) -> TaskAgentResource:
|
|
190
197
|
from .resources.task_agent import TaskAgentResource
|
|
@@ -3228,7 +3235,6 @@ class Nimble(SyncAPIClient):
|
|
|
3228
3235
|
query: str,
|
|
3229
3236
|
content_type: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
3230
3237
|
country: str | Omit = omit,
|
|
3231
|
-
debug_params: Optional[Dict[str, object]] | Omit = omit,
|
|
3232
3238
|
deep_search: Optional[bool] | Omit = omit,
|
|
3233
3239
|
end_date: Optional[str] | Omit = omit,
|
|
3234
3240
|
exclude_domains: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
@@ -3261,8 +3267,6 @@ class Nimble(SyncAPIClient):
|
|
|
3261
3267
|
|
|
3262
3268
|
country: Country code for geo-targeted results (e.g., 'US', 'GB', 'IL')
|
|
3263
3269
|
|
|
3264
|
-
debug_params: Internal-only. Gated to allowlisted accounts; ignored otherwise.
|
|
3265
|
-
|
|
3266
3270
|
deep_search: Deprecated. Use search_depth instead. true maps to 'deep', false maps to 'lite'.
|
|
3267
3271
|
|
|
3268
3272
|
end_date: Filter results before this date (format: YYYY-MM-DD or YYYY)
|
|
@@ -3312,7 +3316,6 @@ class Nimble(SyncAPIClient):
|
|
|
3312
3316
|
"query": query,
|
|
3313
3317
|
"content_type": content_type,
|
|
3314
3318
|
"country": country,
|
|
3315
|
-
"debug_params": debug_params,
|
|
3316
3319
|
"deep_search": deep_search,
|
|
3317
3320
|
"end_date": end_date,
|
|
3318
3321
|
"exclude_domains": exclude_domains,
|
|
@@ -3479,6 +3482,12 @@ class AsyncNimble(AsyncAPIClient):
|
|
|
3479
3482
|
|
|
3480
3483
|
return AsyncSerpResource(self)
|
|
3481
3484
|
|
|
3485
|
+
@cached_property
|
|
3486
|
+
def fast_serp(self) -> AsyncFastSerpResource:
|
|
3487
|
+
from .resources.fast_serp import AsyncFastSerpResource
|
|
3488
|
+
|
|
3489
|
+
return AsyncFastSerpResource(self)
|
|
3490
|
+
|
|
3482
3491
|
@cached_property
|
|
3483
3492
|
def task_agent(self) -> AsyncTaskAgentResource:
|
|
3484
3493
|
from .resources.task_agent import AsyncTaskAgentResource
|
|
@@ -6522,7 +6531,6 @@ class AsyncNimble(AsyncAPIClient):
|
|
|
6522
6531
|
query: str,
|
|
6523
6532
|
content_type: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
6524
6533
|
country: str | Omit = omit,
|
|
6525
|
-
debug_params: Optional[Dict[str, object]] | Omit = omit,
|
|
6526
6534
|
deep_search: Optional[bool] | Omit = omit,
|
|
6527
6535
|
end_date: Optional[str] | Omit = omit,
|
|
6528
6536
|
exclude_domains: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
@@ -6555,8 +6563,6 @@ class AsyncNimble(AsyncAPIClient):
|
|
|
6555
6563
|
|
|
6556
6564
|
country: Country code for geo-targeted results (e.g., 'US', 'GB', 'IL')
|
|
6557
6565
|
|
|
6558
|
-
debug_params: Internal-only. Gated to allowlisted accounts; ignored otherwise.
|
|
6559
|
-
|
|
6560
6566
|
deep_search: Deprecated. Use search_depth instead. true maps to 'deep', false maps to 'lite'.
|
|
6561
6567
|
|
|
6562
6568
|
end_date: Filter results before this date (format: YYYY-MM-DD or YYYY)
|
|
@@ -6606,7 +6612,6 @@ class AsyncNimble(AsyncAPIClient):
|
|
|
6606
6612
|
"query": query,
|
|
6607
6613
|
"content_type": content_type,
|
|
6608
6614
|
"country": country,
|
|
6609
|
-
"debug_params": debug_params,
|
|
6610
6615
|
"deep_search": deep_search,
|
|
6611
6616
|
"end_date": end_date,
|
|
6612
6617
|
"exclude_domains": exclude_domains,
|
|
@@ -6727,6 +6732,12 @@ class NimbleWithRawResponse:
|
|
|
6727
6732
|
|
|
6728
6733
|
return SerpResourceWithRawResponse(self._client.serp)
|
|
6729
6734
|
|
|
6735
|
+
@cached_property
|
|
6736
|
+
def fast_serp(self) -> fast_serp.FastSerpResourceWithRawResponse:
|
|
6737
|
+
from .resources.fast_serp import FastSerpResourceWithRawResponse
|
|
6738
|
+
|
|
6739
|
+
return FastSerpResourceWithRawResponse(self._client.fast_serp)
|
|
6740
|
+
|
|
6730
6741
|
@cached_property
|
|
6731
6742
|
def task_agent(self) -> task_agent.TaskAgentResourceWithRawResponse:
|
|
6732
6743
|
from .resources.task_agent import TaskAgentResourceWithRawResponse
|
|
@@ -6804,6 +6815,12 @@ class AsyncNimbleWithRawResponse:
|
|
|
6804
6815
|
|
|
6805
6816
|
return AsyncSerpResourceWithRawResponse(self._client.serp)
|
|
6806
6817
|
|
|
6818
|
+
@cached_property
|
|
6819
|
+
def fast_serp(self) -> fast_serp.AsyncFastSerpResourceWithRawResponse:
|
|
6820
|
+
from .resources.fast_serp import AsyncFastSerpResourceWithRawResponse
|
|
6821
|
+
|
|
6822
|
+
return AsyncFastSerpResourceWithRawResponse(self._client.fast_serp)
|
|
6823
|
+
|
|
6807
6824
|
@cached_property
|
|
6808
6825
|
def task_agent(self) -> task_agent.AsyncTaskAgentResourceWithRawResponse:
|
|
6809
6826
|
from .resources.task_agent import AsyncTaskAgentResourceWithRawResponse
|
|
@@ -6881,6 +6898,12 @@ class NimbleWithStreamedResponse:
|
|
|
6881
6898
|
|
|
6882
6899
|
return SerpResourceWithStreamingResponse(self._client.serp)
|
|
6883
6900
|
|
|
6901
|
+
@cached_property
|
|
6902
|
+
def fast_serp(self) -> fast_serp.FastSerpResourceWithStreamingResponse:
|
|
6903
|
+
from .resources.fast_serp import FastSerpResourceWithStreamingResponse
|
|
6904
|
+
|
|
6905
|
+
return FastSerpResourceWithStreamingResponse(self._client.fast_serp)
|
|
6906
|
+
|
|
6884
6907
|
@cached_property
|
|
6885
6908
|
def task_agent(self) -> task_agent.TaskAgentResourceWithStreamingResponse:
|
|
6886
6909
|
from .resources.task_agent import TaskAgentResourceWithStreamingResponse
|
|
@@ -6958,6 +6981,12 @@ class AsyncNimbleWithStreamedResponse:
|
|
|
6958
6981
|
|
|
6959
6982
|
return AsyncSerpResourceWithStreamingResponse(self._client.serp)
|
|
6960
6983
|
|
|
6984
|
+
@cached_property
|
|
6985
|
+
def fast_serp(self) -> fast_serp.AsyncFastSerpResourceWithStreamingResponse:
|
|
6986
|
+
from .resources.fast_serp import AsyncFastSerpResourceWithStreamingResponse
|
|
6987
|
+
|
|
6988
|
+
return AsyncFastSerpResourceWithStreamingResponse(self._client.fast_serp)
|
|
6989
|
+
|
|
6961
6990
|
@cached_property
|
|
6962
6991
|
def task_agent(self) -> task_agent.AsyncTaskAgentResourceWithStreamingResponse:
|
|
6963
6992
|
from .resources.task_agent import AsyncTaskAgentResourceWithStreamingResponse
|
nimble_python/_version.py
CHANGED
|
@@ -56,6 +56,14 @@ from .batches import (
|
|
|
56
56
|
BatchesResourceWithStreamingResponse,
|
|
57
57
|
AsyncBatchesResourceWithStreamingResponse,
|
|
58
58
|
)
|
|
59
|
+
from .fast_serp import (
|
|
60
|
+
FastSerpResource,
|
|
61
|
+
AsyncFastSerpResource,
|
|
62
|
+
FastSerpResourceWithRawResponse,
|
|
63
|
+
AsyncFastSerpResourceWithRawResponse,
|
|
64
|
+
FastSerpResourceWithStreamingResponse,
|
|
65
|
+
AsyncFastSerpResourceWithStreamingResponse,
|
|
66
|
+
)
|
|
59
67
|
from .task_agent import (
|
|
60
68
|
TaskAgentResource,
|
|
61
69
|
AsyncTaskAgentResource,
|
|
@@ -116,6 +124,12 @@ __all__ = [
|
|
|
116
124
|
"AsyncSerpResourceWithRawResponse",
|
|
117
125
|
"SerpResourceWithStreamingResponse",
|
|
118
126
|
"AsyncSerpResourceWithStreamingResponse",
|
|
127
|
+
"FastSerpResource",
|
|
128
|
+
"AsyncFastSerpResource",
|
|
129
|
+
"FastSerpResourceWithRawResponse",
|
|
130
|
+
"AsyncFastSerpResourceWithRawResponse",
|
|
131
|
+
"FastSerpResourceWithStreamingResponse",
|
|
132
|
+
"AsyncFastSerpResourceWithStreamingResponse",
|
|
119
133
|
"TaskAgentResource",
|
|
120
134
|
"AsyncTaskAgentResource",
|
|
121
135
|
"TaskAgentResourceWithRawResponse",
|
nimble_python/resources/agent.py
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
+
import typing_extensions
|
|
5
6
|
from typing import Dict, List, Iterable, Optional
|
|
6
7
|
from typing_extensions import Literal, overload
|
|
7
8
|
|
|
@@ -56,6 +57,7 @@ class AgentResource(SyncAPIResource):
|
|
|
56
57
|
"""
|
|
57
58
|
return AgentResourceWithStreamingResponse(self)
|
|
58
59
|
|
|
60
|
+
@typing_extensions.deprecated("deprecated")
|
|
59
61
|
def list(
|
|
60
62
|
self,
|
|
61
63
|
*,
|
|
@@ -114,6 +116,7 @@ class AgentResource(SyncAPIResource):
|
|
|
114
116
|
cast_to=AgentListResponse,
|
|
115
117
|
)
|
|
116
118
|
|
|
119
|
+
@typing_extensions.deprecated("deprecated")
|
|
117
120
|
@overload
|
|
118
121
|
def generate(
|
|
119
122
|
self,
|
|
@@ -121,7 +124,7 @@ class AgentResource(SyncAPIResource):
|
|
|
121
124
|
prompt: str,
|
|
122
125
|
url: str,
|
|
123
126
|
input_schema: Dict[str, object] | Omit = omit,
|
|
124
|
-
metadata: Optional[agent_generate_params.
|
|
127
|
+
metadata: Optional[agent_generate_params.CreateTemplateGenerationRequestPublicV1Metadata] | Omit = omit,
|
|
125
128
|
name: Optional[str] | Omit = omit,
|
|
126
129
|
output_schema: Dict[str, object] | Omit = omit,
|
|
127
130
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -145,6 +148,7 @@ class AgentResource(SyncAPIResource):
|
|
|
145
148
|
"""
|
|
146
149
|
...
|
|
147
150
|
|
|
151
|
+
@typing_extensions.deprecated("deprecated")
|
|
148
152
|
@overload
|
|
149
153
|
def generate(
|
|
150
154
|
self,
|
|
@@ -172,6 +176,7 @@ class AgentResource(SyncAPIResource):
|
|
|
172
176
|
"""
|
|
173
177
|
...
|
|
174
178
|
|
|
179
|
+
@typing_extensions.deprecated("deprecated")
|
|
175
180
|
@required_args(["prompt", "url"], ["from_agent", "prompt"])
|
|
176
181
|
def generate(
|
|
177
182
|
self,
|
|
@@ -179,7 +184,7 @@ class AgentResource(SyncAPIResource):
|
|
|
179
184
|
prompt: str,
|
|
180
185
|
url: str | Omit = omit,
|
|
181
186
|
input_schema: Dict[str, object] | Omit = omit,
|
|
182
|
-
metadata: Optional[agent_generate_params.
|
|
187
|
+
metadata: Optional[agent_generate_params.CreateTemplateGenerationRequestPublicV1Metadata] | Omit = omit,
|
|
183
188
|
name: Optional[str] | Omit = omit,
|
|
184
189
|
output_schema: Dict[str, object] | Omit = omit,
|
|
185
190
|
from_agent: str | Omit = omit,
|
|
@@ -210,6 +215,7 @@ class AgentResource(SyncAPIResource):
|
|
|
210
215
|
cast_to=AgentGenerateResponse,
|
|
211
216
|
)
|
|
212
217
|
|
|
218
|
+
@typing_extensions.deprecated("deprecated")
|
|
213
219
|
def get(
|
|
214
220
|
self,
|
|
215
221
|
template_name: str,
|
|
@@ -243,6 +249,7 @@ class AgentResource(SyncAPIResource):
|
|
|
243
249
|
cast_to=AgentGetResponse,
|
|
244
250
|
)
|
|
245
251
|
|
|
252
|
+
@typing_extensions.deprecated("deprecated")
|
|
246
253
|
def get_generation(
|
|
247
254
|
self,
|
|
248
255
|
generation_id: str,
|
|
@@ -447,6 +454,7 @@ class AsyncAgentResource(AsyncAPIResource):
|
|
|
447
454
|
"""
|
|
448
455
|
return AsyncAgentResourceWithStreamingResponse(self)
|
|
449
456
|
|
|
457
|
+
@typing_extensions.deprecated("deprecated")
|
|
450
458
|
async def list(
|
|
451
459
|
self,
|
|
452
460
|
*,
|
|
@@ -505,6 +513,7 @@ class AsyncAgentResource(AsyncAPIResource):
|
|
|
505
513
|
cast_to=AgentListResponse,
|
|
506
514
|
)
|
|
507
515
|
|
|
516
|
+
@typing_extensions.deprecated("deprecated")
|
|
508
517
|
@overload
|
|
509
518
|
async def generate(
|
|
510
519
|
self,
|
|
@@ -512,7 +521,7 @@ class AsyncAgentResource(AsyncAPIResource):
|
|
|
512
521
|
prompt: str,
|
|
513
522
|
url: str,
|
|
514
523
|
input_schema: Dict[str, object] | Omit = omit,
|
|
515
|
-
metadata: Optional[agent_generate_params.
|
|
524
|
+
metadata: Optional[agent_generate_params.CreateTemplateGenerationRequestPublicV1Metadata] | Omit = omit,
|
|
516
525
|
name: Optional[str] | Omit = omit,
|
|
517
526
|
output_schema: Dict[str, object] | Omit = omit,
|
|
518
527
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -536,6 +545,7 @@ class AsyncAgentResource(AsyncAPIResource):
|
|
|
536
545
|
"""
|
|
537
546
|
...
|
|
538
547
|
|
|
548
|
+
@typing_extensions.deprecated("deprecated")
|
|
539
549
|
@overload
|
|
540
550
|
async def generate(
|
|
541
551
|
self,
|
|
@@ -563,6 +573,7 @@ class AsyncAgentResource(AsyncAPIResource):
|
|
|
563
573
|
"""
|
|
564
574
|
...
|
|
565
575
|
|
|
576
|
+
@typing_extensions.deprecated("deprecated")
|
|
566
577
|
@required_args(["prompt", "url"], ["from_agent", "prompt"])
|
|
567
578
|
async def generate(
|
|
568
579
|
self,
|
|
@@ -570,7 +581,7 @@ class AsyncAgentResource(AsyncAPIResource):
|
|
|
570
581
|
prompt: str,
|
|
571
582
|
url: str | Omit = omit,
|
|
572
583
|
input_schema: Dict[str, object] | Omit = omit,
|
|
573
|
-
metadata: Optional[agent_generate_params.
|
|
584
|
+
metadata: Optional[agent_generate_params.CreateTemplateGenerationRequestPublicV1Metadata] | Omit = omit,
|
|
574
585
|
name: Optional[str] | Omit = omit,
|
|
575
586
|
output_schema: Dict[str, object] | Omit = omit,
|
|
576
587
|
from_agent: str | Omit = omit,
|
|
@@ -601,6 +612,7 @@ class AsyncAgentResource(AsyncAPIResource):
|
|
|
601
612
|
cast_to=AgentGenerateResponse,
|
|
602
613
|
)
|
|
603
614
|
|
|
615
|
+
@typing_extensions.deprecated("deprecated")
|
|
604
616
|
async def get(
|
|
605
617
|
self,
|
|
606
618
|
template_name: str,
|
|
@@ -634,6 +646,7 @@ class AsyncAgentResource(AsyncAPIResource):
|
|
|
634
646
|
cast_to=AgentGetResponse,
|
|
635
647
|
)
|
|
636
648
|
|
|
649
|
+
@typing_extensions.deprecated("deprecated")
|
|
637
650
|
async def get_generation(
|
|
638
651
|
self,
|
|
639
652
|
generation_id: str,
|
|
@@ -822,17 +835,25 @@ class AgentResourceWithRawResponse:
|
|
|
822
835
|
def __init__(self, agent: AgentResource) -> None:
|
|
823
836
|
self._agent = agent
|
|
824
837
|
|
|
825
|
-
self.list =
|
|
826
|
-
|
|
838
|
+
self.list = ( # pyright: ignore[reportDeprecated]
|
|
839
|
+
to_raw_response_wrapper(
|
|
840
|
+
agent.list, # pyright: ignore[reportDeprecated],
|
|
841
|
+
)
|
|
827
842
|
)
|
|
828
|
-
self.generate =
|
|
829
|
-
|
|
843
|
+
self.generate = ( # pyright: ignore[reportDeprecated]
|
|
844
|
+
to_raw_response_wrapper(
|
|
845
|
+
agent.generate, # pyright: ignore[reportDeprecated],
|
|
846
|
+
)
|
|
830
847
|
)
|
|
831
|
-
self.get =
|
|
832
|
-
|
|
848
|
+
self.get = ( # pyright: ignore[reportDeprecated]
|
|
849
|
+
to_raw_response_wrapper(
|
|
850
|
+
agent.get, # pyright: ignore[reportDeprecated],
|
|
851
|
+
)
|
|
833
852
|
)
|
|
834
|
-
self.get_generation =
|
|
835
|
-
|
|
853
|
+
self.get_generation = ( # pyright: ignore[reportDeprecated]
|
|
854
|
+
to_raw_response_wrapper(
|
|
855
|
+
agent.get_generation, # pyright: ignore[reportDeprecated],
|
|
856
|
+
)
|
|
836
857
|
)
|
|
837
858
|
self.run = to_raw_response_wrapper(
|
|
838
859
|
agent.run,
|
|
@@ -849,17 +870,25 @@ class AsyncAgentResourceWithRawResponse:
|
|
|
849
870
|
def __init__(self, agent: AsyncAgentResource) -> None:
|
|
850
871
|
self._agent = agent
|
|
851
872
|
|
|
852
|
-
self.list =
|
|
853
|
-
|
|
873
|
+
self.list = ( # pyright: ignore[reportDeprecated]
|
|
874
|
+
async_to_raw_response_wrapper(
|
|
875
|
+
agent.list, # pyright: ignore[reportDeprecated],
|
|
876
|
+
)
|
|
854
877
|
)
|
|
855
|
-
self.generate =
|
|
856
|
-
|
|
878
|
+
self.generate = ( # pyright: ignore[reportDeprecated]
|
|
879
|
+
async_to_raw_response_wrapper(
|
|
880
|
+
agent.generate, # pyright: ignore[reportDeprecated],
|
|
881
|
+
)
|
|
857
882
|
)
|
|
858
|
-
self.get =
|
|
859
|
-
|
|
883
|
+
self.get = ( # pyright: ignore[reportDeprecated]
|
|
884
|
+
async_to_raw_response_wrapper(
|
|
885
|
+
agent.get, # pyright: ignore[reportDeprecated],
|
|
886
|
+
)
|
|
860
887
|
)
|
|
861
|
-
self.get_generation =
|
|
862
|
-
|
|
888
|
+
self.get_generation = ( # pyright: ignore[reportDeprecated]
|
|
889
|
+
async_to_raw_response_wrapper(
|
|
890
|
+
agent.get_generation, # pyright: ignore[reportDeprecated],
|
|
891
|
+
)
|
|
863
892
|
)
|
|
864
893
|
self.run = async_to_raw_response_wrapper(
|
|
865
894
|
agent.run,
|
|
@@ -876,17 +905,25 @@ class AgentResourceWithStreamingResponse:
|
|
|
876
905
|
def __init__(self, agent: AgentResource) -> None:
|
|
877
906
|
self._agent = agent
|
|
878
907
|
|
|
879
|
-
self.list =
|
|
880
|
-
|
|
908
|
+
self.list = ( # pyright: ignore[reportDeprecated]
|
|
909
|
+
to_streamed_response_wrapper(
|
|
910
|
+
agent.list, # pyright: ignore[reportDeprecated],
|
|
911
|
+
)
|
|
881
912
|
)
|
|
882
|
-
self.generate =
|
|
883
|
-
|
|
913
|
+
self.generate = ( # pyright: ignore[reportDeprecated]
|
|
914
|
+
to_streamed_response_wrapper(
|
|
915
|
+
agent.generate, # pyright: ignore[reportDeprecated],
|
|
916
|
+
)
|
|
884
917
|
)
|
|
885
|
-
self.get =
|
|
886
|
-
|
|
918
|
+
self.get = ( # pyright: ignore[reportDeprecated]
|
|
919
|
+
to_streamed_response_wrapper(
|
|
920
|
+
agent.get, # pyright: ignore[reportDeprecated],
|
|
921
|
+
)
|
|
887
922
|
)
|
|
888
|
-
self.get_generation =
|
|
889
|
-
|
|
923
|
+
self.get_generation = ( # pyright: ignore[reportDeprecated]
|
|
924
|
+
to_streamed_response_wrapper(
|
|
925
|
+
agent.get_generation, # pyright: ignore[reportDeprecated],
|
|
926
|
+
)
|
|
890
927
|
)
|
|
891
928
|
self.run = to_streamed_response_wrapper(
|
|
892
929
|
agent.run,
|
|
@@ -903,17 +940,25 @@ class AsyncAgentResourceWithStreamingResponse:
|
|
|
903
940
|
def __init__(self, agent: AsyncAgentResource) -> None:
|
|
904
941
|
self._agent = agent
|
|
905
942
|
|
|
906
|
-
self.list =
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
943
|
+
self.list = ( # pyright: ignore[reportDeprecated]
|
|
944
|
+
async_to_streamed_response_wrapper(
|
|
945
|
+
agent.list, # pyright: ignore[reportDeprecated],
|
|
946
|
+
)
|
|
947
|
+
)
|
|
948
|
+
self.generate = ( # pyright: ignore[reportDeprecated]
|
|
949
|
+
async_to_streamed_response_wrapper(
|
|
950
|
+
agent.generate, # pyright: ignore[reportDeprecated],
|
|
951
|
+
)
|
|
952
|
+
)
|
|
953
|
+
self.get = ( # pyright: ignore[reportDeprecated]
|
|
954
|
+
async_to_streamed_response_wrapper(
|
|
955
|
+
agent.get, # pyright: ignore[reportDeprecated],
|
|
956
|
+
)
|
|
957
|
+
)
|
|
958
|
+
self.get_generation = ( # pyright: ignore[reportDeprecated]
|
|
959
|
+
async_to_streamed_response_wrapper(
|
|
960
|
+
agent.get_generation, # pyright: ignore[reportDeprecated],
|
|
961
|
+
)
|
|
917
962
|
)
|
|
918
963
|
self.run = async_to_streamed_response_wrapper(
|
|
919
964
|
agent.run,
|