|
21 | 21 | ) |
22 | 22 | from ._utils import is_given, get_async_library |
23 | 23 | from ._version import __version__ |
24 | | -from .resources import memories, settings, connections |
| 24 | +from .resources import search, memories, settings, connections |
25 | 25 | from ._streaming import Stream as Stream, AsyncStream as AsyncStream |
26 | 26 | from ._exceptions import APIStatusError, SupermemoryError |
27 | 27 | from ._base_client import ( |
|
44 | 44 |
|
45 | 45 | class Supermemory(SyncAPIClient): |
46 | 46 | memories: memories.MemoriesResource |
| 47 | + search: search.SearchResource |
47 | 48 | settings: settings.SettingsResource |
48 | 49 | connections: connections.ConnectionsResource |
49 | 50 | with_raw_response: SupermemoryWithRawResponse |
@@ -104,6 +105,7 @@ def __init__( |
104 | 105 | ) |
105 | 106 |
|
106 | 107 | self.memories = memories.MemoriesResource(self) |
| 108 | + self.search = search.SearchResource(self) |
107 | 109 | self.settings = settings.SettingsResource(self) |
108 | 110 | self.connections = connections.ConnectionsResource(self) |
109 | 111 | self.with_raw_response = SupermemoryWithRawResponse(self) |
@@ -216,6 +218,7 @@ def _make_status_error( |
216 | 218 |
|
217 | 219 | class AsyncSupermemory(AsyncAPIClient): |
218 | 220 | memories: memories.AsyncMemoriesResource |
| 221 | + search: search.AsyncSearchResource |
219 | 222 | settings: settings.AsyncSettingsResource |
220 | 223 | connections: connections.AsyncConnectionsResource |
221 | 224 | with_raw_response: AsyncSupermemoryWithRawResponse |
@@ -276,6 +279,7 @@ def __init__( |
276 | 279 | ) |
277 | 280 |
|
278 | 281 | self.memories = memories.AsyncMemoriesResource(self) |
| 282 | + self.search = search.AsyncSearchResource(self) |
279 | 283 | self.settings = settings.AsyncSettingsResource(self) |
280 | 284 | self.connections = connections.AsyncConnectionsResource(self) |
281 | 285 | self.with_raw_response = AsyncSupermemoryWithRawResponse(self) |
@@ -389,27 +393,31 @@ def _make_status_error( |
389 | 393 | class SupermemoryWithRawResponse: |
390 | 394 | def __init__(self, client: Supermemory) -> None: |
391 | 395 | self.memories = memories.MemoriesResourceWithRawResponse(client.memories) |
| 396 | + self.search = search.SearchResourceWithRawResponse(client.search) |
392 | 397 | self.settings = settings.SettingsResourceWithRawResponse(client.settings) |
393 | 398 | self.connections = connections.ConnectionsResourceWithRawResponse(client.connections) |
394 | 399 |
|
395 | 400 |
|
396 | 401 | class AsyncSupermemoryWithRawResponse: |
397 | 402 | def __init__(self, client: AsyncSupermemory) -> None: |
398 | 403 | self.memories = memories.AsyncMemoriesResourceWithRawResponse(client.memories) |
| 404 | + self.search = search.AsyncSearchResourceWithRawResponse(client.search) |
399 | 405 | self.settings = settings.AsyncSettingsResourceWithRawResponse(client.settings) |
400 | 406 | self.connections = connections.AsyncConnectionsResourceWithRawResponse(client.connections) |
401 | 407 |
|
402 | 408 |
|
403 | 409 | class SupermemoryWithStreamedResponse: |
404 | 410 | def __init__(self, client: Supermemory) -> None: |
405 | 411 | self.memories = memories.MemoriesResourceWithStreamingResponse(client.memories) |
| 412 | + self.search = search.SearchResourceWithStreamingResponse(client.search) |
406 | 413 | self.settings = settings.SettingsResourceWithStreamingResponse(client.settings) |
407 | 414 | self.connections = connections.ConnectionsResourceWithStreamingResponse(client.connections) |
408 | 415 |
|
409 | 416 |
|
410 | 417 | class AsyncSupermemoryWithStreamedResponse: |
411 | 418 | def __init__(self, client: AsyncSupermemory) -> None: |
412 | 419 | self.memories = memories.AsyncMemoriesResourceWithStreamingResponse(client.memories) |
| 420 | + self.search = search.AsyncSearchResourceWithStreamingResponse(client.search) |
413 | 421 | self.settings = settings.AsyncSettingsResourceWithStreamingResponse(client.settings) |
414 | 422 | self.connections = connections.AsyncConnectionsResourceWithStreamingResponse(client.connections) |
415 | 423 |
|
|
0 commit comments