1515 ViewResourceWithStreamingResponse ,
1616 AsyncViewResourceWithStreamingResponse ,
1717)
18+ from .memory import (
19+ MemoryResource ,
20+ AsyncMemoryResource ,
21+ MemoryResourceWithRawResponse ,
22+ AsyncMemoryResourceWithRawResponse ,
23+ MemoryResourceWithStreamingResponse ,
24+ AsyncMemoryResourceWithStreamingResponse ,
25+ )
1826from .traces import (
1927 TracesResource ,
2028 AsyncTracesResource ,
@@ -49,6 +57,10 @@ def traces(self) -> TracesResource:
4957 def view (self ) -> ViewResource :
5058 return ViewResource (self ._client )
5159
60+ @cached_property
61+ def memory (self ) -> MemoryResource :
62+ return MemoryResource (self ._client )
63+
5264 @cached_property
5365 def with_raw_response (self ) -> ContextResourceWithRawResponse :
5466 """
@@ -250,6 +262,10 @@ def traces(self) -> AsyncTracesResource:
250262 def view (self ) -> AsyncViewResource :
251263 return AsyncViewResource (self ._client )
252264
265+ @cached_property
266+ def memory (self ) -> AsyncMemoryResource :
267+ return AsyncMemoryResource (self ._client )
268+
253269 @cached_property
254270 def with_raw_response (self ) -> AsyncContextResourceWithRawResponse :
255271 """
@@ -464,6 +480,10 @@ def traces(self) -> TracesResourceWithRawResponse:
464480 def view (self ) -> ViewResourceWithRawResponse :
465481 return ViewResourceWithRawResponse (self ._context .view )
466482
483+ @cached_property
484+ def memory (self ) -> MemoryResourceWithRawResponse :
485+ return MemoryResourceWithRawResponse (self ._context .memory )
486+
467487
468488class AsyncContextResourceWithRawResponse :
469489 def __init__ (self , context : AsyncContextResource ) -> None :
@@ -487,6 +507,10 @@ def traces(self) -> AsyncTracesResourceWithRawResponse:
487507 def view (self ) -> AsyncViewResourceWithRawResponse :
488508 return AsyncViewResourceWithRawResponse (self ._context .view )
489509
510+ @cached_property
511+ def memory (self ) -> AsyncMemoryResourceWithRawResponse :
512+ return AsyncMemoryResourceWithRawResponse (self ._context .memory )
513+
490514
491515class ContextResourceWithStreamingResponse :
492516 def __init__ (self , context : ContextResource ) -> None :
@@ -510,6 +534,10 @@ def traces(self) -> TracesResourceWithStreamingResponse:
510534 def view (self ) -> ViewResourceWithStreamingResponse :
511535 return ViewResourceWithStreamingResponse (self ._context .view )
512536
537+ @cached_property
538+ def memory (self ) -> MemoryResourceWithStreamingResponse :
539+ return MemoryResourceWithStreamingResponse (self ._context .memory )
540+
513541
514542class AsyncContextResourceWithStreamingResponse :
515543 def __init__ (self , context : AsyncContextResource ) -> None :
@@ -532,3 +560,7 @@ def traces(self) -> AsyncTracesResourceWithStreamingResponse:
532560 @cached_property
533561 def view (self ) -> AsyncViewResourceWithStreamingResponse :
534562 return AsyncViewResourceWithStreamingResponse (self ._context .view )
563+
564+ @cached_property
565+ def memory (self ) -> AsyncMemoryResourceWithStreamingResponse :
566+ return AsyncMemoryResourceWithStreamingResponse (self ._context .memory )
0 commit comments