Skip to content

Commit b2c94a2

Browse files
Update docstring (#283)
* chore: Fix fact ratings table * SDK regeneration * chore: Version bump * chore: Version bump * SDK regeneration * chore: Add support for user/graph ontology targets * SDK regeneration * chore: Add support for setting entity/edges on a list of users/graphs * SDK regeneration * chore: Bump version * SDK regeneration * feat: Update compose context string util to include episodes and display entity attributes * chore: Bump version * fix: tests * chore: Remove redundant timestamp conversion branch * SDK regeneration * chore: Version bump * SDK regeneration * SDK regeneration * fix: tests * chore: Version bump * SDK regeneration --------- Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
1 parent 628bfb7 commit b2c94a2

File tree

7 files changed

+25
-25
lines changed

7 files changed

+25
-25
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "zep-cloud"
33

44
[tool.poetry]
55
name = "zep-cloud"
6-
version = "3.4.0"
6+
version = "3.4.1"
77
description = ""
88
readme = "README.md"
99
authors = []

reference.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,7 +1462,7 @@ client.thread.delete(
14621462
<dl>
14631463
<dd>
14641464

1465-
Returns most relevant context for a given thread.
1465+
Returns most relevant context from the user graph (including memory from any/all past threads) based on the content of the past few messages of the given thread.
14661466
</dd>
14671467
</dl>
14681468
</dd>
@@ -1500,7 +1500,7 @@ client.thread.get_user_context(
15001500
<dl>
15011501
<dd>
15021502

1503-
**thread_id:** `str` — The ID of the thread for which to retrieve context.
1503+
**thread_id:** `str` — The ID of the current thread (for which context is being retrieved).
15041504

15051505
</dd>
15061506
</dl>
@@ -1714,7 +1714,7 @@ that are added to a user's graph.
17141714
<dl>
17151715
<dd>
17161716

1717-
**return_context:** `typing.Optional[bool]` — Optionally return memory context relevant to the most recent messages.
1717+
**return_context:** `typing.Optional[bool]` — Optionally return context block relevant to the most recent messages.
17181718

17191719
</dd>
17201720
</dl>
@@ -1818,7 +1818,7 @@ that are added to a user's graph.
18181818
<dl>
18191819
<dd>
18201820

1821-
**return_context:** `typing.Optional[bool]` — Optionally return memory context relevant to the most recent messages.
1821+
**return_context:** `typing.Optional[bool]` — Optionally return context block relevant to the most recent messages.
18221822

18231823
</dd>
18241824
</dl>

src/zep_cloud/core/client_wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ def __init__(
2222

2323
def get_headers(self) -> typing.Dict[str, str]:
2424
headers: typing.Dict[str, str] = {
25-
"User-Agent": "zep-cloud/3.4.0",
25+
"User-Agent": "zep-cloud/3.4.1",
2626
"X-Fern-Language": "Python",
2727
"X-Fern-SDK-Name": "zep-cloud",
28-
"X-Fern-SDK-Version": "3.4.0",
28+
"X-Fern-SDK-Version": "3.4.1",
2929
**(self.get_custom_headers() or {}),
3030
}
3131
headers["Authorization"] = f"Api-Key {self.api_key}"

src/zep_cloud/thread/client.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,12 @@ def get_user_context(
159159
request_options: typing.Optional[RequestOptions] = None,
160160
) -> ThreadContextResponse:
161161
"""
162-
Returns most relevant context for a given thread.
162+
Returns most relevant context from the user graph (including memory from any/all past threads) based on the content of the past few messages of the given thread.
163163
164164
Parameters
165165
----------
166166
thread_id : str
167-
The ID of the thread for which to retrieve context.
167+
The ID of the current thread (for which context is being retrieved).
168168
169169
min_rating : typing.Optional[float]
170170
The minimum rating by which to filter relevant facts.
@@ -272,7 +272,7 @@ def add_messages(
272272
that are added to a user's graph.
273273
274274
return_context : typing.Optional[bool]
275-
Optionally return memory context relevant to the most recent messages.
275+
Optionally return context block relevant to the most recent messages.
276276
277277
request_options : typing.Optional[RequestOptions]
278278
Request-specific configuration.
@@ -334,7 +334,7 @@ def add_messages_batch(
334334
that are added to a user's graph.
335335
336336
return_context : typing.Optional[bool]
337-
Optionally return memory context relevant to the most recent messages.
337+
Optionally return context block relevant to the most recent messages.
338338
339339
request_options : typing.Optional[RequestOptions]
340340
Request-specific configuration.
@@ -537,12 +537,12 @@ async def get_user_context(
537537
request_options: typing.Optional[RequestOptions] = None,
538538
) -> ThreadContextResponse:
539539
"""
540-
Returns most relevant context for a given thread.
540+
Returns most relevant context from the user graph (including memory from any/all past threads) based on the content of the past few messages of the given thread.
541541
542542
Parameters
543543
----------
544544
thread_id : str
545-
The ID of the thread for which to retrieve context.
545+
The ID of the current thread (for which context is being retrieved).
546546
547547
min_rating : typing.Optional[float]
548548
The minimum rating by which to filter relevant facts.
@@ -666,7 +666,7 @@ async def add_messages(
666666
that are added to a user's graph.
667667
668668
return_context : typing.Optional[bool]
669-
Optionally return memory context relevant to the most recent messages.
669+
Optionally return context block relevant to the most recent messages.
670670
671671
request_options : typing.Optional[RequestOptions]
672672
Request-specific configuration.
@@ -736,7 +736,7 @@ async def add_messages_batch(
736736
that are added to a user's graph.
737737
738738
return_context : typing.Optional[bool]
739-
Optionally return memory context relevant to the most recent messages.
739+
Optionally return context block relevant to the most recent messages.
740740
741741
request_options : typing.Optional[RequestOptions]
742742
Request-specific configuration.

src/zep_cloud/thread/raw_client.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -268,12 +268,12 @@ def get_user_context(
268268
request_options: typing.Optional[RequestOptions] = None,
269269
) -> HttpResponse[ThreadContextResponse]:
270270
"""
271-
Returns most relevant context for a given thread.
271+
Returns most relevant context from the user graph (including memory from any/all past threads) based on the content of the past few messages of the given thread.
272272
273273
Parameters
274274
----------
275275
thread_id : str
276-
The ID of the thread for which to retrieve context.
276+
The ID of the current thread (for which context is being retrieved).
277277
278278
min_rating : typing.Optional[float]
279279
The minimum rating by which to filter relevant facts.
@@ -450,7 +450,7 @@ def add_messages(
450450
that are added to a user's graph.
451451
452452
return_context : typing.Optional[bool]
453-
Optionally return memory context relevant to the most recent messages.
453+
Optionally return context block relevant to the most recent messages.
454454
455455
request_options : typing.Optional[RequestOptions]
456456
Request-specific configuration.
@@ -532,7 +532,7 @@ def add_messages_batch(
532532
that are added to a user's graph.
533533
534534
return_context : typing.Optional[bool]
535-
Optionally return memory context relevant to the most recent messages.
535+
Optionally return context block relevant to the most recent messages.
536536
537537
request_options : typing.Optional[RequestOptions]
538538
Request-specific configuration.
@@ -829,12 +829,12 @@ async def get_user_context(
829829
request_options: typing.Optional[RequestOptions] = None,
830830
) -> AsyncHttpResponse[ThreadContextResponse]:
831831
"""
832-
Returns most relevant context for a given thread.
832+
Returns most relevant context from the user graph (including memory from any/all past threads) based on the content of the past few messages of the given thread.
833833
834834
Parameters
835835
----------
836836
thread_id : str
837-
The ID of the thread for which to retrieve context.
837+
The ID of the current thread (for which context is being retrieved).
838838
839839
min_rating : typing.Optional[float]
840840
The minimum rating by which to filter relevant facts.
@@ -1011,7 +1011,7 @@ async def add_messages(
10111011
that are added to a user's graph.
10121012
10131013
return_context : typing.Optional[bool]
1014-
Optionally return memory context relevant to the most recent messages.
1014+
Optionally return context block relevant to the most recent messages.
10151015
10161016
request_options : typing.Optional[RequestOptions]
10171017
Request-specific configuration.
@@ -1093,7 +1093,7 @@ async def add_messages_batch(
10931093
that are added to a user's graph.
10941094
10951095
return_context : typing.Optional[bool]
1096-
Optionally return memory context relevant to the most recent messages.
1096+
Optionally return context block relevant to the most recent messages.
10971097
10981098
request_options : typing.Optional[RequestOptions]
10991099
Request-specific configuration.

src/zep_cloud/types/add_thread_messages_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class AddThreadMessagesRequest(UniversalBaseModel):
2323

2424
return_context: typing.Optional[bool] = pydantic.Field(default=None)
2525
"""
26-
Optionally return memory context relevant to the most recent messages.
26+
Optionally return context block relevant to the most recent messages.
2727
"""
2828

2929
if IS_PYDANTIC_V2:

src/zep_cloud/types/thread_context_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
class ThreadContextResponse(UniversalBaseModel):
1010
context: typing.Optional[str] = pydantic.Field(default=None)
1111
"""
12-
Memory context containing relevant facts and entities for the session. Can be put into the prompt directly.
12+
Context block containing relevant facts, entities, and messages/episodes from the user graph. Meant to be replaced in the system prompt on every chat turn.
1313
"""
1414

1515
if IS_PYDANTIC_V2:

0 commit comments

Comments
 (0)