@@ -116,7 +116,7 @@ async def health_check(self) -> HealthCheckResponse:
116116 Returns:
117117 HealthCheckResponse with current server timestamp
118118 """
119- response = await self ._client .get ("/health" )
119+ response = await self ._client .get ("/v1/ health" )
120120 response .raise_for_status ()
121121 return HealthCheckResponse (** response .json ())
122122
@@ -143,7 +143,7 @@ async def list_sessions(
143143 elif self .config .default_namespace is not None :
144144 params ["namespace" ] = self .config .default_namespace
145145
146- response = await self ._client .get ("/sessions /" , params = params )
146+ response = await self ._client .get ("/v1/working-memory /" , params = params )
147147 response .raise_for_status ()
148148 return SessionListResponse (** response .json ())
149149
@@ -188,7 +188,7 @@ async def get_session_memory(
188188 params ["context_window_max" ] = context_window_max
189189
190190 response = await self ._client .get (
191- f"/sessions/ { session_id } /memory " , params = params
191+ f"/v1/working-memory/ { session_id } " , params = params
192192 )
193193 response .raise_for_status ()
194194 return WorkingMemoryResponse (** response .json ())
@@ -211,7 +211,7 @@ async def put_session_memory(
211211 memory .namespace = self .config .default_namespace
212212
213213 response = await self ._client .put (
214- f"/sessions/ { session_id } /memory " ,
214+ f"/v1/working-memory/ { session_id } " ,
215215 json = memory .model_dump (exclude_none = True , mode = "json" ),
216216 )
217217 response .raise_for_status ()
@@ -237,7 +237,7 @@ async def delete_session_memory(
237237 params ["namespace" ] = self .config .default_namespace
238238
239239 response = await self ._client .delete (
240- f"/sessions/ { session_id } /memory " , params = params
240+ f"/v1/working-memory/ { session_id } " , params = params
241241 )
242242 response .raise_for_status ()
243243 return AckResponse (** response .json ())
@@ -391,7 +391,8 @@ async def create_long_term_memory(
391391
392392 payload = CreateMemoryRecordRequest (memories = memories )
393393 response = await self ._client .post (
394- "/long-term-memory" , json = payload .model_dump (exclude_none = True , mode = "json" )
394+ "/v1/long-term-memory/" ,
395+ json = payload .model_dump (exclude_none = True , mode = "json" ),
395396 )
396397 response .raise_for_status ()
397398 return AckResponse (** response .json ())
@@ -471,7 +472,7 @@ async def search_long_term_memory(
471472 )
472473
473474 response = await self ._client .post (
474- "/long-term-memory/search" ,
475+ "/v1/ long-term-memory/search" ,
475476 json = payload .model_dump (exclude_none = True , mode = "json" ),
476477 )
477478 response .raise_for_status ()
@@ -566,7 +567,7 @@ async def search_memories(
566567 )
567568
568569 response = await self ._client .post (
569- "/memory/search" ,
570+ "/v1/ memory/search" ,
570571 json = payload .model_dump (exclude_none = True , mode = "json" ),
571572 )
572573 response .raise_for_status ()
@@ -638,7 +639,7 @@ async def memory_prompt(
638639
639640 # Make the API call
640641 response = await self ._client .post (
641- "/memory- prompt" , json = payload .model_dump (exclude_none = True , mode = "json" )
642+ "/v1/ memory/ prompt" , json = payload .model_dump (exclude_none = True , mode = "json" )
642643 )
643644 response .raise_for_status ()
644645 data = response .json ()
@@ -761,7 +762,7 @@ async def hydrate_memory_prompt(
761762
762763 # Make the API call
763764 response = await self ._client .post (
764- "/memory- prompt" , json = payload .model_dump (exclude_none = True , mode = "json" )
765+ "/v1/ memory/ prompt" , json = payload .model_dump (exclude_none = True , mode = "json" )
765766 )
766767 response .raise_for_status ()
767768 data = response .json ()
0 commit comments