|
35 | 35 | ) |
36 | 36 |
|
37 | 37 | if TYPE_CHECKING: |
38 | | - from .resources import ai, web, brand, parse, utility, industry, monitors |
| 38 | + from .resources import ai, web, batch, brand, parse, utility, industry, monitors |
39 | 39 | from .resources.ai import AIResource, AsyncAIResource |
40 | 40 | from .resources.web import WebResource, AsyncWebResource |
| 41 | + from .resources.batch import BatchResource, AsyncBatchResource |
41 | 42 | from .resources.brand import BrandResource, AsyncBrandResource |
42 | 43 | from .resources.parse import ParseResource, AsyncParseResource |
43 | 44 | from .resources.utility import UtilityResource, AsyncUtilityResource |
@@ -165,6 +166,12 @@ def monitors(self) -> MonitorsResource: |
165 | 166 |
|
166 | 167 | return MonitorsResource(self) |
167 | 168 |
|
| 169 | + @cached_property |
| 170 | + def batch(self) -> BatchResource: |
| 171 | + from .resources.batch import BatchResource |
| 172 | + |
| 173 | + return BatchResource(self) |
| 174 | + |
168 | 175 | @cached_property |
169 | 176 | def with_raw_response(self) -> ContextDevWithRawResponse: |
170 | 177 | return ContextDevWithRawResponse(self) |
@@ -387,6 +394,12 @@ def monitors(self) -> AsyncMonitorsResource: |
387 | 394 |
|
388 | 395 | return AsyncMonitorsResource(self) |
389 | 396 |
|
| 397 | + @cached_property |
| 398 | + def batch(self) -> AsyncBatchResource: |
| 399 | + from .resources.batch import AsyncBatchResource |
| 400 | + |
| 401 | + return AsyncBatchResource(self) |
| 402 | + |
390 | 403 | @cached_property |
391 | 404 | def with_raw_response(self) -> AsyncContextDevWithRawResponse: |
392 | 405 | return AsyncContextDevWithRawResponse(self) |
@@ -551,6 +564,12 @@ def monitors(self) -> monitors.MonitorsResourceWithRawResponse: |
551 | 564 |
|
552 | 565 | return MonitorsResourceWithRawResponse(self._client.monitors) |
553 | 566 |
|
| 567 | + @cached_property |
| 568 | + def batch(self) -> batch.BatchResourceWithRawResponse: |
| 569 | + from .resources.batch import BatchResourceWithRawResponse |
| 570 | + |
| 571 | + return BatchResourceWithRawResponse(self._client.batch) |
| 572 | + |
554 | 573 |
|
555 | 574 | class AsyncContextDevWithRawResponse: |
556 | 575 | _client: AsyncContextDev |
@@ -603,6 +622,12 @@ def monitors(self) -> monitors.AsyncMonitorsResourceWithRawResponse: |
603 | 622 |
|
604 | 623 | return AsyncMonitorsResourceWithRawResponse(self._client.monitors) |
605 | 624 |
|
| 625 | + @cached_property |
| 626 | + def batch(self) -> batch.AsyncBatchResourceWithRawResponse: |
| 627 | + from .resources.batch import AsyncBatchResourceWithRawResponse |
| 628 | + |
| 629 | + return AsyncBatchResourceWithRawResponse(self._client.batch) |
| 630 | + |
606 | 631 |
|
607 | 632 | class ContextDevWithStreamedResponse: |
608 | 633 | _client: ContextDev |
@@ -655,6 +680,12 @@ def monitors(self) -> monitors.MonitorsResourceWithStreamingResponse: |
655 | 680 |
|
656 | 681 | return MonitorsResourceWithStreamingResponse(self._client.monitors) |
657 | 682 |
|
| 683 | + @cached_property |
| 684 | + def batch(self) -> batch.BatchResourceWithStreamingResponse: |
| 685 | + from .resources.batch import BatchResourceWithStreamingResponse |
| 686 | + |
| 687 | + return BatchResourceWithStreamingResponse(self._client.batch) |
| 688 | + |
658 | 689 |
|
659 | 690 | class AsyncContextDevWithStreamedResponse: |
660 | 691 | _client: AsyncContextDev |
@@ -707,6 +738,12 @@ def monitors(self) -> monitors.AsyncMonitorsResourceWithStreamingResponse: |
707 | 738 |
|
708 | 739 | return AsyncMonitorsResourceWithStreamingResponse(self._client.monitors) |
709 | 740 |
|
| 741 | + @cached_property |
| 742 | + def batch(self) -> batch.AsyncBatchResourceWithStreamingResponse: |
| 743 | + from .resources.batch import AsyncBatchResourceWithStreamingResponse |
| 744 | + |
| 745 | + return AsyncBatchResourceWithStreamingResponse(self._client.batch) |
| 746 | + |
710 | 747 |
|
711 | 748 | Client = ContextDev |
712 | 749 |
|
|
0 commit comments