|
8 | 8 |
|
9 | 9 | import httpx
|
10 | 10 |
|
11 |
| -from . import _exceptions |
| 11 | +from . import resources, _exceptions |
12 | 12 | from ._qs import Querystring
|
13 | 13 | from ._types import (
|
14 | 14 | NOT_GIVEN,
|
|
31 | 31 | SyncAPIClient,
|
32 | 32 | AsyncAPIClient,
|
33 | 33 | )
|
34 |
| -from .resources.datastores import datastores |
35 |
| -from .resources.applications import applications |
36 | 34 |
|
37 | 35 | __all__ = [
|
38 | 36 | "Timeout",
|
39 | 37 | "Transport",
|
40 | 38 | "ProxiesTypes",
|
41 | 39 | "RequestOptions",
|
| 40 | + "resources", |
42 | 41 | "ContextualAI",
|
43 | 42 | "AsyncContextualAI",
|
44 | 43 | "Client",
|
|
47 | 46 |
|
48 | 47 |
|
49 | 48 | class ContextualAI(SyncAPIClient):
|
50 |
| - datastores: datastores.DatastoresResource |
51 |
| - applications: applications.ApplicationsResource |
| 49 | + datastores: resources.DatastoresResource |
| 50 | + applications: resources.ApplicationsResource |
52 | 51 | with_raw_response: ContextualAIWithRawResponse
|
53 | 52 | with_streaming_response: ContextualAIWithStreamedResponse
|
54 | 53 |
|
@@ -106,8 +105,8 @@ def __init__(
|
106 | 105 | _strict_response_validation=_strict_response_validation,
|
107 | 106 | )
|
108 | 107 |
|
109 |
| - self.datastores = datastores.DatastoresResource(self) |
110 |
| - self.applications = applications.ApplicationsResource(self) |
| 108 | + self.datastores = resources.DatastoresResource(self) |
| 109 | + self.applications = resources.ApplicationsResource(self) |
111 | 110 | self.with_raw_response = ContextualAIWithRawResponse(self)
|
112 | 111 | self.with_streaming_response = ContextualAIWithStreamedResponse(self)
|
113 | 112 |
|
@@ -217,8 +216,8 @@ def _make_status_error(
|
217 | 216 |
|
218 | 217 |
|
219 | 218 | class AsyncContextualAI(AsyncAPIClient):
|
220 |
| - datastores: datastores.AsyncDatastoresResource |
221 |
| - applications: applications.AsyncApplicationsResource |
| 219 | + datastores: resources.AsyncDatastoresResource |
| 220 | + applications: resources.AsyncApplicationsResource |
222 | 221 | with_raw_response: AsyncContextualAIWithRawResponse
|
223 | 222 | with_streaming_response: AsyncContextualAIWithStreamedResponse
|
224 | 223 |
|
@@ -276,8 +275,8 @@ def __init__(
|
276 | 275 | _strict_response_validation=_strict_response_validation,
|
277 | 276 | )
|
278 | 277 |
|
279 |
| - self.datastores = datastores.AsyncDatastoresResource(self) |
280 |
| - self.applications = applications.AsyncApplicationsResource(self) |
| 278 | + self.datastores = resources.AsyncDatastoresResource(self) |
| 279 | + self.applications = resources.AsyncApplicationsResource(self) |
281 | 280 | self.with_raw_response = AsyncContextualAIWithRawResponse(self)
|
282 | 281 | self.with_streaming_response = AsyncContextualAIWithStreamedResponse(self)
|
283 | 282 |
|
@@ -388,26 +387,26 @@ def _make_status_error(
|
388 | 387 |
|
389 | 388 | class ContextualAIWithRawResponse:
|
390 | 389 | def __init__(self, client: ContextualAI) -> None:
|
391 |
| - self.datastores = datastores.DatastoresResourceWithRawResponse(client.datastores) |
392 |
| - self.applications = applications.ApplicationsResourceWithRawResponse(client.applications) |
| 390 | + self.datastores = resources.DatastoresResourceWithRawResponse(client.datastores) |
| 391 | + self.applications = resources.ApplicationsResourceWithRawResponse(client.applications) |
393 | 392 |
|
394 | 393 |
|
395 | 394 | class AsyncContextualAIWithRawResponse:
|
396 | 395 | def __init__(self, client: AsyncContextualAI) -> None:
|
397 |
| - self.datastores = datastores.AsyncDatastoresResourceWithRawResponse(client.datastores) |
398 |
| - self.applications = applications.AsyncApplicationsResourceWithRawResponse(client.applications) |
| 396 | + self.datastores = resources.AsyncDatastoresResourceWithRawResponse(client.datastores) |
| 397 | + self.applications = resources.AsyncApplicationsResourceWithRawResponse(client.applications) |
399 | 398 |
|
400 | 399 |
|
401 | 400 | class ContextualAIWithStreamedResponse:
|
402 | 401 | def __init__(self, client: ContextualAI) -> None:
|
403 |
| - self.datastores = datastores.DatastoresResourceWithStreamingResponse(client.datastores) |
404 |
| - self.applications = applications.ApplicationsResourceWithStreamingResponse(client.applications) |
| 402 | + self.datastores = resources.DatastoresResourceWithStreamingResponse(client.datastores) |
| 403 | + self.applications = resources.ApplicationsResourceWithStreamingResponse(client.applications) |
405 | 404 |
|
406 | 405 |
|
407 | 406 | class AsyncContextualAIWithStreamedResponse:
|
408 | 407 | def __init__(self, client: AsyncContextualAI) -> None:
|
409 |
| - self.datastores = datastores.AsyncDatastoresResourceWithStreamingResponse(client.datastores) |
410 |
| - self.applications = applications.AsyncApplicationsResourceWithStreamingResponse(client.applications) |
| 408 | + self.datastores = resources.AsyncDatastoresResourceWithStreamingResponse(client.datastores) |
| 409 | + self.applications = resources.AsyncApplicationsResourceWithStreamingResponse(client.applications) |
411 | 410 |
|
412 | 411 |
|
413 | 412 | Client = ContextualAI
|
|
0 commit comments