Skip to content

Commit 20e7065

Browse files
Merge branch 'main' of github.com:getzep/zep-python
2 parents 7a271c0 + a80dee3 commit 20e7065

24 files changed

Lines changed: 567 additions & 1374 deletions

‎reference.md‎

Lines changed: 110 additions & 283 deletions
Large diffs are not rendered by default.

‎src/zep_cloud/__init__.py‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
CloneGraphResponse,
1111
ClusterDetectConfig,
1212
CoOccurrenceDetectConfig,
13-
CommunityNode,
1413
ComparisonOperator,
1514
ContextTemplateResponse,
1615
CustomInstruction,
1716
DateFilter,
17+
DerivedNode,
1818
DetectConfig,
1919
DetectPatternsResponse,
2020
EdgeType,
@@ -32,15 +32,14 @@
3232
EpisodeResponse,
3333
GetTaskResponse,
3434
Graph,
35-
GraphCommunitiesRequest,
3635
GraphDataType,
3736
GraphEdgesRequest,
3837
GraphListResponse,
3938
GraphNodesRequest,
40-
GraphSagasRequest,
39+
GraphObservationsRequest,
4140
GraphSearchResults,
4241
GraphSearchScope,
43-
GraphThemesRequest,
42+
GraphThreadSummariesRequest,
4443
GraphitiMetadataFilterGroupType,
4544
GraphitiSagaNode,
4645
HubDetectConfig,
@@ -68,6 +67,7 @@
6867
Thread,
6968
ThreadContextResponse,
7069
ThreadListResponse,
70+
ThreadSummary,
7171
User,
7272
UserInstruction,
7373
UserListResponse,
@@ -89,11 +89,11 @@
8989
"CloneGraphResponse",
9090
"ClusterDetectConfig",
9191
"CoOccurrenceDetectConfig",
92-
"CommunityNode",
9392
"ComparisonOperator",
9493
"ContextTemplateResponse",
9594
"CustomInstruction",
9695
"DateFilter",
96+
"DerivedNode",
9797
"DetectConfig",
9898
"DetectPatternsResponse",
9999
"EdgeType",
@@ -112,15 +112,14 @@
112112
"ForbiddenError",
113113
"GetTaskResponse",
114114
"Graph",
115-
"GraphCommunitiesRequest",
116115
"GraphDataType",
117116
"GraphEdgesRequest",
118117
"GraphListResponse",
119118
"GraphNodesRequest",
120-
"GraphSagasRequest",
119+
"GraphObservationsRequest",
121120
"GraphSearchResults",
122121
"GraphSearchScope",
123-
"GraphThemesRequest",
122+
"GraphThreadSummariesRequest",
124123
"GraphitiMetadataFilterGroupType",
125124
"GraphitiSagaNode",
126125
"HubDetectConfig",
@@ -150,6 +149,7 @@
150149
"Thread",
151150
"ThreadContextResponse",
152151
"ThreadListResponse",
152+
"ThreadSummary",
153153
"User",
154154
"UserInstruction",
155155
"UserListResponse",

‎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.20.0",
25+
"User-Agent": "zep-cloud/3.21.0",
2626
"X-Fern-Language": "Python",
2727
"X-Fern-SDK-Name": "zep-cloud",
28-
"X-Fern-SDK-Version": "3.20.0",
28+
"X-Fern-SDK-Version": "3.21.0",
2929
**(self.get_custom_headers() or {}),
3030
}
3131
headers["Authorization"] = f"Api-Key {self.api_key}"

‎src/zep_cloud/graph/__init__.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
# isort: skip_file
44

5-
from . import community, edge, episode, node, saga, theme
5+
from . import edge, episode, node, observation, thread_summary
66

7-
__all__ = ["community", "edge", "episode", "node", "saga", "theme"]
7+
__all__ = ["edge", "episode", "node", "observation", "thread_summary"]

‎src/zep_cloud/graph/client.py‎

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,12 @@
2525
from ..types.reranker import Reranker
2626
from ..types.search_filters import SearchFilters
2727
from ..types.success_response import SuccessResponse
28-
from .community.client import AsyncCommunityClient, CommunityClient
2928
from .edge.client import AsyncEdgeClient, EdgeClient
3029
from .episode.client import AsyncEpisodeClient, EpisodeClient
3130
from .node.client import AsyncNodeClient, NodeClient
31+
from .observation.client import AsyncObservationClient, ObservationClient
3232
from .raw_client import AsyncRawGraphClient, RawGraphClient
33-
from .saga.client import AsyncSagaClient, SagaClient
34-
from .theme.client import AsyncThemeClient, ThemeClient
33+
from .thread_summary.client import AsyncThreadSummaryClient, ThreadSummaryClient
3534

3635
# this is used as the default value for optional parameters
3736
OMIT = typing.cast(typing.Any, ...)
@@ -40,17 +39,15 @@
4039
class GraphClient:
4140
def __init__(self, *, client_wrapper: SyncClientWrapper):
4241
self._raw_client = RawGraphClient(client_wrapper=client_wrapper)
43-
self.community = CommunityClient(client_wrapper=client_wrapper)
44-
4542
self.edge = EdgeClient(client_wrapper=client_wrapper)
4643

4744
self.episode = EpisodeClient(client_wrapper=client_wrapper)
4845

4946
self.node = NodeClient(client_wrapper=client_wrapper)
5047

51-
self.saga = SagaClient(client_wrapper=client_wrapper)
48+
self.observation = ObservationClient(client_wrapper=client_wrapper)
5249

53-
self.theme = ThemeClient(client_wrapper=client_wrapper)
50+
self.thread_summary = ThreadSummaryClient(client_wrapper=client_wrapper)
5451

5552
@property
5653
def with_raw_response(self) -> RawGraphClient:
@@ -1007,17 +1004,15 @@ def update(
10071004
class AsyncGraphClient:
10081005
def __init__(self, *, client_wrapper: AsyncClientWrapper):
10091006
self._raw_client = AsyncRawGraphClient(client_wrapper=client_wrapper)
1010-
self.community = AsyncCommunityClient(client_wrapper=client_wrapper)
1011-
10121007
self.edge = AsyncEdgeClient(client_wrapper=client_wrapper)
10131008

10141009
self.episode = AsyncEpisodeClient(client_wrapper=client_wrapper)
10151010

10161011
self.node = AsyncNodeClient(client_wrapper=client_wrapper)
10171012

1018-
self.saga = AsyncSagaClient(client_wrapper=client_wrapper)
1013+
self.observation = AsyncObservationClient(client_wrapper=client_wrapper)
10191014

1020-
self.theme = AsyncThemeClient(client_wrapper=client_wrapper)
1015+
self.thread_summary = AsyncThreadSummaryClient(client_wrapper=client_wrapper)
10211016

10221017
@property
10231018
def with_raw_response(self) -> AsyncRawGraphClient:

0 commit comments

Comments
 (0)