From 361f93b4df6c99aae1871ee0507421b5bfaf6ea7 Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 16 Oct 2024 21:42:08 +0000 Subject: [PATCH] SDK regeneration --- src/zep_cloud/memory/client.py | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/src/zep_cloud/memory/client.py b/src/zep_cloud/memory/client.py index e93148d..fff090c 100644 --- a/src/zep_cloud/memory/client.py +++ b/src/zep_cloud/memory/client.py @@ -327,6 +327,7 @@ def end_sessions( def search_sessions( self, *, + text: str, limit: typing.Optional[int] = None, min_fact_rating: typing.Optional[float] = OMIT, min_score: typing.Optional[float] = OMIT, @@ -335,7 +336,6 @@ def search_sessions( search_scope: typing.Optional[SearchScope] = OMIT, search_type: typing.Optional[SearchType] = OMIT, session_ids: typing.Optional[typing.Sequence[str]] = OMIT, - text: typing.Optional[str] = OMIT, user_id: typing.Optional[str] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> SessionSearchResponse: @@ -344,6 +344,9 @@ def search_sessions( Parameters ---------- + text : str + The search text. + limit : typing.Optional[int] The maximum number of search results to return. Defaults to None (no limit). @@ -368,9 +371,6 @@ def search_sessions( session_ids : typing.Optional[typing.Sequence[str]] the session ids to search - text : typing.Optional[str] - The search text. - user_id : typing.Optional[str] User ID used to determine which sessions to search. Required on Community Edition. @@ -389,7 +389,9 @@ def search_sessions( client = Zep( api_key="YOUR_API_KEY", ) - client.memory.search_sessions() + client.memory.search_sessions( + text="text", + ) """ _response = self._client_wrapper.httpx_client.request( "sessions/search", @@ -1710,6 +1712,7 @@ async def end_sessions( async def search_sessions( self, *, + text: str, limit: typing.Optional[int] = None, min_fact_rating: typing.Optional[float] = OMIT, min_score: typing.Optional[float] = OMIT, @@ -1718,7 +1721,6 @@ async def search_sessions( search_scope: typing.Optional[SearchScope] = OMIT, search_type: typing.Optional[SearchType] = OMIT, session_ids: typing.Optional[typing.Sequence[str]] = OMIT, - text: typing.Optional[str] = OMIT, user_id: typing.Optional[str] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> SessionSearchResponse: @@ -1727,6 +1729,9 @@ async def search_sessions( Parameters ---------- + text : str + The search text. + limit : typing.Optional[int] The maximum number of search results to return. Defaults to None (no limit). @@ -1751,9 +1756,6 @@ async def search_sessions( session_ids : typing.Optional[typing.Sequence[str]] the session ids to search - text : typing.Optional[str] - The search text. - user_id : typing.Optional[str] User ID used to determine which sessions to search. Required on Community Edition. @@ -1772,7 +1774,9 @@ async def search_sessions( client = AsyncZep( api_key="YOUR_API_KEY", ) - await client.memory.search_sessions() + await client.memory.search_sessions( + text="text", + ) """ _response = await self._client_wrapper.httpx_client.request( "sessions/search",