Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 3 additions & 3 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
},
"pyproject_python_version": "^3.10"
},
"originGitCommit": "9ad0803521b69af693f92404ec41770231c3cb8e",
"originGitCommit": "3bad6dc94b415e5291ffa6b5e67e06422c97660b",
"originGitCommitIsDirty": true,
"invokedBy": "ci",
"requestedVersion": "4.0.0rc2",
"requestedVersion": "4.0.0",
"ciProvider": "github",
"sdkVersion": "4.0.0rc2"
"sdkVersion": "4.0.0"
}
10 changes: 8 additions & 2 deletions .fern/replay.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[project]
name = "zep-cloud"
dynamic = ["version"]
version = "4.0.0rc2"
version = "4.0.0"

[tool.poetry]
name = "zep-cloud"
version = "4.0.0rc2"
version = "4.0.0"
description = ""
readme = "README.md"
authors = []
Expand Down
61 changes: 53 additions & 8 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -2670,7 +2670,7 @@ client.graph.set_ontology(
<dl>
<dd>

Edge search does not support node_labels or exclude_node_labels. An edge has two nodes, so a node label filter is not defined for edge search. To filter edges by node label, use graph.edge.list, graph.node.list_neighbors, or graph.get_subgraph. To search the edges of nodes that have a label, do these two steps. First, call graph.search_nodes with node_labels. Then, call graph.search_edges with connected_node_uuids set to the UUIDs of the returned nodes.
Edge search does not support node_labels, exclude_node_labels, or content_policy_violated. content_policy_violated is supported on episode search only. An edge has two nodes, so a node label filter is not defined for edge search. To filter edges by node label, use graph.edge.list, graph.node.list_neighbors, or graph.get_subgraph. To search the edges of nodes that have a label, do these two steps. First, call graph.search_nodes with node_labels. Then, call graph.search_edges with connected_node_uuids set to the UUIDs of the returned nodes.
</dd>
</dl>
</dd>
Expand Down Expand Up @@ -2824,6 +2824,20 @@ Required when reranker is mmr.
<dl>
<dd>

#### 📝 Description

<dl>
<dd>

<dl>
<dd>

Episode search supports only the metadata_filters and content_policy_violated filters. Every other filter returns unsupported_filter.
</dd>
</dl>
</dd>
</dl>

#### 🔌 Usage

<dl>
Expand Down Expand Up @@ -2929,7 +2943,7 @@ timeout, Zep returns the results without the filter.
<dl>
<dd>

**filters:** `typing.Optional[SearchFilters]` — Filters constraining which items are returned.
**filters:** `typing.Optional[EpisodeSearchFilters]` — Filters constraining which items are returned.

</dd>
</dl>
Expand Down Expand Up @@ -2980,7 +2994,7 @@ Required when reranker is mmr.
<dl>
<dd>

Node search does not support edge_types, exclude_edge_types, edge_uuids, connected_node_uuids, source_node_uuids, or target_node_uuids. These filters select edges. To get the nodes that an edge connects, use graph.search_edges or graph.node.list_neighbors.
Node search does not support edge_types, exclude_edge_types, edge_uuids, connected_node_uuids, source_node_uuids, target_node_uuids, date_filters, or content_policy_violated. content_policy_violated is supported on episode search only. The edge filters select edges. To get the nodes that an edge connects, use graph.search_edges or graph.node.list_neighbors. To filter nodes by created_at, use graph.node.list.
</dd>
</dl>
</dd>
Expand Down Expand Up @@ -3134,6 +3148,20 @@ Required when reranker is mmr.
<dl>
<dd>

#### 📝 Description

<dl>
<dd>

<dl>
<dd>

Observation search supports no filters. Every filter returns unsupported_filter.
</dd>
</dl>
</dd>
</dl>

#### 🔌 Usage

<dl>
Expand Down Expand Up @@ -3239,7 +3267,7 @@ timeout, Zep returns the results without the filter.
<dl>
<dd>

**filters:** `typing.Optional[SearchFilters]` — Filters constraining which items are returned.
**filters:** `typing.Optional[ObservationSearchFilters]` — Filters constraining which items are returned.

</dd>
</dl>
Expand Down Expand Up @@ -3282,6 +3310,20 @@ Required when reranker is mmr.
<dl>
<dd>

#### 📝 Description

<dl>
<dd>

<dl>
<dd>

Thread-summary search supports only the metadata_filters filter, which matches the metadata of the thread episodes. Every other filter returns unsupported_filter.
</dd>
</dl>
</dd>
</dl>

#### 🔌 Usage

<dl>
Expand Down Expand Up @@ -3387,7 +3429,7 @@ timeout, Zep returns the results without the filter.
<dl>
<dd>

**filters:** `typing.Optional[SearchFilters]` — Filters constraining which items are returned.
**filters:** `typing.Optional[ThreadSummarySearchFilters]` — Filters constraining which items are returned.

</dd>
</dl>
Expand Down Expand Up @@ -13263,7 +13305,8 @@ client.agent.trace_import.run.item.list(

Lists the document summaries of a graph and returns one page of results. The default `page_size` is 50, and the maximum `page_size` is 100.
You can sort by `uuid` or `created_at`. The default sort is `uuid` in descending order.
You cannot use these `filters` fields: `episode_uuids`, `connected_node_uuids`, `source_node_uuids`, `target_node_uuids`, and `content_policy_violated`.
You cannot use these `filters` fields: `node_labels`, `exclude_node_labels`, `edge_types`, `exclude_edge_types`, `edge_uuids`, `episode_uuids`, `connected_node_uuids`, `source_node_uuids`, `target_node_uuids`, and `content_policy_violated`.
`date_filters` supports only the `created_at` field.
If the request has an unsupported or unknown filter field, the API returns an `unsupported_filter` error.
</dd>
</dl>
Expand Down Expand Up @@ -15831,7 +15874,8 @@ client.graph.node.list_neighbors(

Lists the observations of a graph and returns one page of results. The default `page_size` is 50, and the maximum `page_size` is 100.
You can sort by `uuid` or `created_at`. The default sort is `uuid` in descending order.
You cannot use these `filters` fields: `episode_uuids`, `connected_node_uuids`, `source_node_uuids`, `target_node_uuids`, and `content_policy_violated`.
You cannot use these `filters` fields: `node_labels`, `exclude_node_labels`, `edge_types`, `exclude_edge_types`, `edge_uuids`, `episode_uuids`, `connected_node_uuids`, `source_node_uuids`, `target_node_uuids`, `metadata_filters`, and `content_policy_violated`.
`date_filters` supports only the `created_at` field.
If the request has an unsupported or unknown filter field, the API returns an `unsupported_filter` error.
</dd>
</dl>
Expand Down Expand Up @@ -16019,7 +16063,8 @@ client.graph.observation.get(

Lists the thread summaries of a graph and returns one page of results. The default `page_size` is 50, and the maximum `page_size` is 100.
You can sort by `uuid` or `created_at`. The default sort is `uuid` in descending order.
You cannot use these `filters` fields: `episode_uuids`, `connected_node_uuids`, `source_node_uuids`, `target_node_uuids`, and `content_policy_violated`.
You cannot use these `filters` fields: `node_labels`, `exclude_node_labels`, `edge_types`, `exclude_edge_types`, `edge_uuids`, `episode_uuids`, `connected_node_uuids`, `source_node_uuids`, `target_node_uuids`, and `content_policy_violated`.
`date_filters` supports only the `created_at` field.
If the request has an unsupported or unknown filter field, the API returns an `unsupported_filter` error.
</dd>
</dl>
Expand Down
12 changes: 12 additions & 0 deletions src/zep_cloud/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@
EpisodeDebugLog,
EpisodeListFilters,
EpisodePage,
EpisodeSearchFilters,
ErrorBody,
Graph,
GraphContentPolicy,
Expand Down Expand Up @@ -256,6 +257,7 @@
Observation,
ObservationListFilters,
ObservationPage,
ObservationSearchFilters,
ObservationSteering,
ObservationType,
Ontology,
Expand All @@ -274,6 +276,7 @@
PropertyFilterOperator,
PropertyFilterValue,
PropertyFilterValueThreeItem,
RejectedBatchItem,
RenameAgentTaskFamilyResponse,
RoleType,
SearchFilters,
Expand Down Expand Up @@ -309,6 +312,7 @@
ThreadSummary,
ThreadSummaryListFilters,
ThreadSummaryPage,
ThreadSummarySearchFilters,
TraceConnection,
TraceConnectionPage,
TraceConnectionProvider,
Expand Down Expand Up @@ -597,6 +601,7 @@
"EpisodeDebugLog": ".types",
"EpisodeListFilters": ".types",
"EpisodePage": ".types",
"EpisodeSearchFilters": ".types",
"ErrorBody": ".types",
"ForbiddenError": ".errors",
"Graph": ".types",
Expand Down Expand Up @@ -658,6 +663,7 @@
"Observation": ".types",
"ObservationListFilters": ".types",
"ObservationPage": ".types",
"ObservationSearchFilters": ".types",
"ObservationSteering": ".types",
"ObservationType": ".types",
"Ontology": ".types",
Expand All @@ -676,6 +682,7 @@
"PropertyFilterOperator": ".types",
"PropertyFilterValue": ".types",
"PropertyFilterValueThreeItem": ".types",
"RejectedBatchItem": ".types",
"RenameAgentTaskFamilyResponse": ".types",
"RoleType": ".types",
"SearchEdgesRequestReranker": ".graph",
Expand Down Expand Up @@ -721,6 +728,7 @@
"ThreadSummary": ".types",
"ThreadSummaryListFilters": ".types",
"ThreadSummaryPage": ".types",
"ThreadSummarySearchFilters": ".types",
"TraceConnection": ".types",
"TraceConnectionPage": ".types",
"TraceConnectionProvider": ".types",
Expand Down Expand Up @@ -1006,6 +1014,7 @@ def __dir__():
"EpisodeDebugLog",
"EpisodeListFilters",
"EpisodePage",
"EpisodeSearchFilters",
"ErrorBody",
"ForbiddenError",
"Graph",
Expand Down Expand Up @@ -1067,6 +1076,7 @@ def __dir__():
"Observation",
"ObservationListFilters",
"ObservationPage",
"ObservationSearchFilters",
"ObservationSteering",
"ObservationType",
"Ontology",
Expand All @@ -1085,6 +1095,7 @@ def __dir__():
"PropertyFilterOperator",
"PropertyFilterValue",
"PropertyFilterValueThreeItem",
"RejectedBatchItem",
"RenameAgentTaskFamilyResponse",
"RoleType",
"SearchEdgesRequestReranker",
Expand Down Expand Up @@ -1130,6 +1141,7 @@ def __dir__():
"ThreadSummary",
"ThreadSummaryListFilters",
"ThreadSummaryPage",
"ThreadSummarySearchFilters",
"TraceConnection",
"TraceConnectionPage",
"TraceConnectionProvider",
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 @@ -33,12 +33,12 @@ def get_headers(self) -> typing.Dict[str, str]:
import platform

headers: typing.Dict[str, str] = {
"User-Agent": "zep-cloud/4.0.0rc2",
"User-Agent": "zep-cloud/4.0.0",
"X-Fern-Language": "Python",
"X-Fern-Runtime": f"python/{platform.python_version()}",
"X-Fern-Platform": f"{platform.system().lower()}/{platform.release()}",
"X-Fern-SDK-Name": "zep-cloud",
"X-Fern-SDK-Version": "4.0.0rc2",
"X-Fern-SDK-Version": "4.0.0",
**(self.get_custom_headers() or {}),
}
headers["Authorization"] = f"Api-Key {self.api_key}"
Expand Down
Loading
Loading