Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
2ae5251
chore: Fix fact ratings table
paul-paliychuk Apr 16, 2025
791352a
Merge branch 'main' of github.com:getzep/zep-python
paul-paliychuk May 13, 2025
be6b1b7
Merge branch 'main' of github.com:getzep/zep-python
paul-paliychuk May 26, 2025
43e3b64
Merge branch 'main' of github.com:getzep/zep-python
paul-paliychuk Jul 17, 2025
94d84f9
Merge branch 'main' of github.com:getzep/zep-python
paul-paliychuk Jul 21, 2025
ee2f7c0
Merge remote-tracking branch 'origin/main'
paul-paliychuk Jul 31, 2025
ecfa894
Merge branch 'main' of github.com:getzep/zep-python
paul-paliychuk Oct 30, 2025
a7239ae
Merge branch 'main' of github.com:getzep/zep-python
paul-paliychuk Nov 18, 2025
e19b12c
Merge branch 'main' of github.com:getzep/zep-python
paul-paliychuk Nov 18, 2025
7a271c0
Merge branch 'main' of github.com:getzep/zep-python
paul-paliychuk Apr 27, 2026
20e7065
Merge branch 'main' of github.com:getzep/zep-python
paul-paliychuk Apr 27, 2026
1595965
SDK regeneration
fern-api[bot] May 1, 2026
ab09c31
chore: Bump version
paul-paliychuk May 1, 2026
ef4ee07
SDK regeneration
fern-api[bot] May 1, 2026
2f45c2f
SDK regeneration
fern-api[bot] May 1, 2026
cf142c7
chore: Bump version
paul-paliychuk May 1, 2026
0ce738e
chore: Bump version
paul-paliychuk May 1, 2026
ad149ae
SDK regeneration
fern-api[bot] May 1, 2026
bee9738
SDK regeneration
fern-api[bot] May 4, 2026
b07c278
SDK regeneration
fern-api[bot] May 4, 2026
3d8edf8
SDK regeneration
fern-api[bot] May 21, 2026
b0705b4
chore: Bump version to 3.23.0
prasmussen15 May 21, 2026
85fb908
SDK regeneration
fern-api[bot] May 21, 2026
be64846
Merge branch 'main' of github.com:getzep/zep-python into v3
paul-paliychuk May 21, 2026
b28aa17
SDK regeneration
fern-api[bot] May 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[project]
name = "zep-cloud"
version = "3.22.0"
version = "3.23.0"

[tool.poetry]
name = "zep-cloud"
version = "3.22.0"
version = "3.23.0"
description = ""
readme = "README.md"
authors = []
Expand Down
33 changes: 24 additions & 9 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1462,7 +1462,9 @@ client.graph.add(
<dl>
<dd>

Add data to the graph in batch mode. Episodes are processed sequentially in the order provided.
Deprecated. Use the [Batch API](/adding-batch-data) (`client.batch.*`) instead.

Adds data to the graph in batch mode, processing episodes concurrently.
</dd>
</dl>
</dd>
Expand Down Expand Up @@ -1681,7 +1683,13 @@ Nested objects and arrays are not allowed.
<dl>
<dd>

**source_node_labels:** `typing.Optional[typing.Sequence[str]]` — The labels for the source node
**source_node_labels:** `typing.Optional[typing.Sequence[str]]`

The labels for the source node. At most one entity-type label may be
provided so that manually-added triples remain consistent with automatic
episode extraction, which assigns one best-match entity type per node.
The base "Entity" label is added implicitly by the graph layer on save
and does not need to be supplied here.

</dd>
</dl>
Expand Down Expand Up @@ -1724,7 +1732,13 @@ Nested objects and arrays are not allowed.
<dl>
<dd>

**target_node_labels:** `typing.Optional[typing.Sequence[str]]` — The labels for the target node
**target_node_labels:** `typing.Optional[typing.Sequence[str]]`

The labels for the target node. At most one entity-type label may be
provided so that manually-added triples remain consistent with automatic
episode extraction, which assigns one best-match entity type per node.
The base "Entity" label is added implicitly by the graph layer on save
and does not need to be supplied here.

</dd>
</dl>
Expand Down Expand Up @@ -2314,7 +2328,7 @@ client.graph.search(
<dl>
<dd>

**limit:** `typing.Optional[int]` — The maximum number of facts to retrieve. Defaults to 10. Limited to 50.
**limit:** `typing.Optional[int]` — The maximum number of facts to retrieve for non-auto scopes. Defaults to 10. Limited to 50. Ignored when scope=auto.

</dd>
</dl>
Expand All @@ -2340,9 +2354,8 @@ client.graph.search(

**reranker:** `typing.Optional[Reranker]`

Defaults to RRF. When scope=auto, this only affects graph-service retrieval
shape for graph facts, observations, and thread summaries; source-episode
retrieval uses RRF, and auto search applies its own internal rerank after retrieval.
Defaults to RRF. Ignored when scope=auto except node_distance and episode_mentions are rejected;
auto search always uses RRF retrieval and applies its own internal rerank after retrieval.

</dd>
</dl>
Expand Down Expand Up @@ -3117,7 +3130,7 @@ client = Zep(
client.thread.get(
thread_id="threadId",
limit=1,
cursor=1,
cursor=1000000,
lastn=1,
)

Expand Down Expand Up @@ -3295,7 +3308,9 @@ that are added to a user's graph.
<dl>
<dd>

Add messages to a thread in batch mode. This will process messages concurrently, which is useful for data migrations.
Deprecated. Use the [Batch API](/adding-batch-data) (`client.batch.*` with `type: "thread_message"`) instead.

Adds messages to a thread in batch mode, processing messages concurrently.
</dd>
</dl>
</dd>
Expand Down
2 changes: 2 additions & 0 deletions src/zep_cloud/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
GraphListResponse,
GraphNodesRequest,
GraphObservationsRequest,
GraphSearchResponseMetadata,
GraphSearchResults,
GraphSearchScope,
GraphThreadSummariesRequest,
Expand Down Expand Up @@ -140,6 +141,7 @@
"GraphListResponse",
"GraphNodesRequest",
"GraphObservationsRequest",
"GraphSearchResponseMetadata",
"GraphSearchResults",
"GraphSearchScope",
"GraphThreadSummariesRequest",
Expand Down
4 changes: 2 additions & 2 deletions src/zep_cloud/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ def __init__(

def get_headers(self) -> typing.Dict[str, str]:
headers: typing.Dict[str, str] = {
"User-Agent": "zep-cloud/3.22.0",
"User-Agent": "zep-cloud/3.23.0",
"X-Fern-Language": "Python",
"X-Fern-SDK-Name": "zep-cloud",
"X-Fern-SDK-Version": "3.22.0",
"X-Fern-SDK-Version": "3.23.0",
**(self.get_custom_headers() or {}),
}
headers["Authorization"] = f"Api-Key {self.api_key}"
Expand Down
46 changes: 32 additions & 14 deletions src/zep_cloud/graph/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,9 @@ def add_batch(
request_options: typing.Optional[RequestOptions] = None,
) -> typing.List[Episode]:
"""
Add data to the graph in batch mode. Episodes are processed sequentially in the order provided.
Deprecated. Use the [Batch API](/adding-batch-data) (`client.batch.*`) instead.

Adds data to the graph in batch mode, processing episodes concurrently.

Parameters
----------
Expand Down Expand Up @@ -469,7 +471,11 @@ def add_fact_triple(
Nested objects and arrays are not allowed.

source_node_labels : typing.Optional[typing.Sequence[str]]
The labels for the source node
The labels for the source node. At most one entity-type label may be
provided so that manually-added triples remain consistent with automatic
episode extraction, which assigns one best-match entity type per node.
The base "Entity" label is added implicitly by the graph layer on save
and does not need to be supplied here.

source_node_name : typing.Optional[str]
The name of the source node to add
Expand All @@ -485,7 +491,11 @@ def add_fact_triple(
Nested objects and arrays are not allowed.

target_node_labels : typing.Optional[typing.Sequence[str]]
The labels for the target node
The labels for the target node. At most one entity-type label may be
provided so that manually-added triples remain consistent with automatic
episode extraction, which assigns one best-match entity type per node.
The base "Entity" label is added implicitly by the graph layer on save
and does not need to be supplied here.

target_node_name : typing.Optional[str]
The name of the target node to add
Expand Down Expand Up @@ -835,7 +845,7 @@ def search(
The graph_id to search in. When searching user graph, please use user_id instead.

limit : typing.Optional[int]
The maximum number of facts to retrieve. Defaults to 10. Limited to 50.
The maximum number of facts to retrieve for non-auto scopes. Defaults to 10. Limited to 50. Ignored when scope=auto.

max_characters : typing.Optional[int]
Maximum total characters across all selected results when scope=auto. Defaults to 2500. Limited to 50000.
Expand All @@ -844,9 +854,8 @@ def search(
weighting for maximal marginal relevance

reranker : typing.Optional[Reranker]
Defaults to RRF. When scope=auto, this only affects graph-service retrieval
shape for graph facts, observations, and thread summaries; source-episode
retrieval uses RRF, and auto search applies its own internal rerank after retrieval.
Defaults to RRF. Ignored when scope=auto except node_distance and episode_mentions are rejected;
auto search always uses RRF retrieval and applies its own internal rerank after retrieval.

return_raw_results : typing.Optional[bool]
When scope=auto, include the selected raw graph results alongside the materialized context block.
Expand Down Expand Up @@ -1381,7 +1390,9 @@ async def add_batch(
request_options: typing.Optional[RequestOptions] = None,
) -> typing.List[Episode]:
"""
Add data to the graph in batch mode. Episodes are processed sequentially in the order provided.
Deprecated. Use the [Batch API](/adding-batch-data) (`client.batch.*`) instead.

Adds data to the graph in batch mode, processing episodes concurrently.

Parameters
----------
Expand Down Expand Up @@ -1494,7 +1505,11 @@ async def add_fact_triple(
Nested objects and arrays are not allowed.

source_node_labels : typing.Optional[typing.Sequence[str]]
The labels for the source node
The labels for the source node. At most one entity-type label may be
provided so that manually-added triples remain consistent with automatic
episode extraction, which assigns one best-match entity type per node.
The base "Entity" label is added implicitly by the graph layer on save
and does not need to be supplied here.

source_node_name : typing.Optional[str]
The name of the source node to add
Expand All @@ -1510,7 +1525,11 @@ async def add_fact_triple(
Nested objects and arrays are not allowed.

target_node_labels : typing.Optional[typing.Sequence[str]]
The labels for the target node
The labels for the target node. At most one entity-type label may be
provided so that manually-added triples remain consistent with automatic
episode extraction, which assigns one best-match entity type per node.
The base "Entity" label is added implicitly by the graph layer on save
and does not need to be supplied here.

target_node_name : typing.Optional[str]
The name of the target node to add
Expand Down Expand Up @@ -1900,7 +1919,7 @@ async def search(
The graph_id to search in. When searching user graph, please use user_id instead.

limit : typing.Optional[int]
The maximum number of facts to retrieve. Defaults to 10. Limited to 50.
The maximum number of facts to retrieve for non-auto scopes. Defaults to 10. Limited to 50. Ignored when scope=auto.

max_characters : typing.Optional[int]
Maximum total characters across all selected results when scope=auto. Defaults to 2500. Limited to 50000.
Expand All @@ -1909,9 +1928,8 @@ async def search(
weighting for maximal marginal relevance

reranker : typing.Optional[Reranker]
Defaults to RRF. When scope=auto, this only affects graph-service retrieval
shape for graph facts, observations, and thread summaries; source-episode
retrieval uses RRF, and auto search applies its own internal rerank after retrieval.
Defaults to RRF. Ignored when scope=auto except node_distance and episode_mentions are rejected;
auto search always uses RRF retrieval and applies its own internal rerank after retrieval.

return_raw_results : typing.Optional[bool]
When scope=auto, include the selected raw graph results alongside the materialized context block.
Expand Down
46 changes: 32 additions & 14 deletions src/zep_cloud/graph/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,9 @@ def add_batch(
request_options: typing.Optional[RequestOptions] = None,
) -> HttpResponse[typing.List[Episode]]:
"""
Add data to the graph in batch mode. Episodes are processed sequentially in the order provided.
Deprecated. Use the [Batch API](/adding-batch-data) (`client.batch.*`) instead.

Adds data to the graph in batch mode, processing episodes concurrently.

Parameters
----------
Expand Down Expand Up @@ -765,7 +767,11 @@ def add_fact_triple(
Nested objects and arrays are not allowed.

source_node_labels : typing.Optional[typing.Sequence[str]]
The labels for the source node
The labels for the source node. At most one entity-type label may be
provided so that manually-added triples remain consistent with automatic
episode extraction, which assigns one best-match entity type per node.
The base "Entity" label is added implicitly by the graph layer on save
and does not need to be supplied here.

source_node_name : typing.Optional[str]
The name of the source node to add
Expand All @@ -781,7 +787,11 @@ def add_fact_triple(
Nested objects and arrays are not allowed.

target_node_labels : typing.Optional[typing.Sequence[str]]
The labels for the target node
The labels for the target node. At most one entity-type label may be
provided so that manually-added triples remain consistent with automatic
episode extraction, which assigns one best-match entity type per node.
The base "Entity" label is added implicitly by the graph layer on save
and does not need to be supplied here.

target_node_name : typing.Optional[str]
The name of the target node to add
Expand Down Expand Up @@ -1337,7 +1347,7 @@ def search(
The graph_id to search in. When searching user graph, please use user_id instead.

limit : typing.Optional[int]
The maximum number of facts to retrieve. Defaults to 10. Limited to 50.
The maximum number of facts to retrieve for non-auto scopes. Defaults to 10. Limited to 50. Ignored when scope=auto.

max_characters : typing.Optional[int]
Maximum total characters across all selected results when scope=auto. Defaults to 2500. Limited to 50000.
Expand All @@ -1346,9 +1356,8 @@ def search(
weighting for maximal marginal relevance

reranker : typing.Optional[Reranker]
Defaults to RRF. When scope=auto, this only affects graph-service retrieval
shape for graph facts, observations, and thread summaries; source-episode
retrieval uses RRF, and auto search applies its own internal rerank after retrieval.
Defaults to RRF. Ignored when scope=auto except node_distance and episode_mentions are rejected;
auto search always uses RRF retrieval and applies its own internal rerank after retrieval.

return_raw_results : typing.Optional[bool]
When scope=auto, include the selected raw graph results alongside the materialized context block.
Expand Down Expand Up @@ -2254,7 +2263,9 @@ async def add_batch(
request_options: typing.Optional[RequestOptions] = None,
) -> AsyncHttpResponse[typing.List[Episode]]:
"""
Add data to the graph in batch mode. Episodes are processed sequentially in the order provided.
Deprecated. Use the [Batch API](/adding-batch-data) (`client.batch.*`) instead.

Adds data to the graph in batch mode, processing episodes concurrently.

Parameters
----------
Expand Down Expand Up @@ -2395,7 +2406,11 @@ async def add_fact_triple(
Nested objects and arrays are not allowed.

source_node_labels : typing.Optional[typing.Sequence[str]]
The labels for the source node
The labels for the source node. At most one entity-type label may be
provided so that manually-added triples remain consistent with automatic
episode extraction, which assigns one best-match entity type per node.
The base "Entity" label is added implicitly by the graph layer on save
and does not need to be supplied here.

source_node_name : typing.Optional[str]
The name of the source node to add
Expand All @@ -2411,7 +2426,11 @@ async def add_fact_triple(
Nested objects and arrays are not allowed.

target_node_labels : typing.Optional[typing.Sequence[str]]
The labels for the target node
The labels for the target node. At most one entity-type label may be
provided so that manually-added triples remain consistent with automatic
episode extraction, which assigns one best-match entity type per node.
The base "Entity" label is added implicitly by the graph layer on save
and does not need to be supplied here.

target_node_name : typing.Optional[str]
The name of the target node to add
Expand Down Expand Up @@ -2967,7 +2986,7 @@ async def search(
The graph_id to search in. When searching user graph, please use user_id instead.

limit : typing.Optional[int]
The maximum number of facts to retrieve. Defaults to 10. Limited to 50.
The maximum number of facts to retrieve for non-auto scopes. Defaults to 10. Limited to 50. Ignored when scope=auto.

max_characters : typing.Optional[int]
Maximum total characters across all selected results when scope=auto. Defaults to 2500. Limited to 50000.
Expand All @@ -2976,9 +2995,8 @@ async def search(
weighting for maximal marginal relevance

reranker : typing.Optional[Reranker]
Defaults to RRF. When scope=auto, this only affects graph-service retrieval
shape for graph facts, observations, and thread summaries; source-episode
retrieval uses RRF, and auto search applies its own internal rerank after retrieval.
Defaults to RRF. Ignored when scope=auto except node_distance and episode_mentions are rejected;
auto search always uses RRF retrieval and applies its own internal rerank after retrieval.

return_raw_results : typing.Optional[bool]
When scope=auto, include the selected raw graph results alongside the materialized context block.
Expand Down
12 changes: 8 additions & 4 deletions src/zep_cloud/thread/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def get(
client.thread.get(
thread_id="threadId",
limit=1,
cursor=1,
cursor=1000000,
lastn=1,
)
"""
Expand Down Expand Up @@ -325,7 +325,9 @@ def add_messages_batch(
request_options: typing.Optional[RequestOptions] = None,
) -> AddThreadMessagesResponse:
"""
Add messages to a thread in batch mode. This will process messages concurrently, which is useful for data migrations.
Deprecated. Use the [Batch API](/adding-batch-data) (`client.batch.*` with `type: "thread_message"`) instead.

Adds messages to a thread in batch mode, processing messages concurrently.

Parameters
----------
Expand Down Expand Up @@ -672,7 +674,7 @@ async def main() -> None:
await client.thread.get(
thread_id="threadId",
limit=1,
cursor=1,
cursor=1000000,
lastn=1,
)

Expand Down Expand Up @@ -764,7 +766,9 @@ async def add_messages_batch(
request_options: typing.Optional[RequestOptions] = None,
) -> AddThreadMessagesResponse:
"""
Add messages to a thread in batch mode. This will process messages concurrently, which is useful for data migrations.
Deprecated. Use the [Batch API](/adding-batch-data) (`client.batch.*` with `type: "thread_message"`) instead.

Adds messages to a thread in batch mode, processing messages concurrently.

Parameters
----------
Expand Down
Loading
Loading