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