Skip to content

Commit 4de8ad8

Browse files
Release SDK v4.0.0-alpha.2
* [fern-generated] Update SDK Generated by Fern CLI Version: unknown Generators: - fernapi/fern-python-sdk: 4.64.1 * [fern-replay] advance lockfile * chore: bump SDK version to 4.0.0-alpha.2 --------- Co-authored-by: fern-api[bot] <115122769+fern-api[bot]@users.noreply.github.com> Co-authored-by: zep-sdk-release-bot[bot] <zep-sdk-release-bot[bot]@users.noreply.github.com>
1 parent 5344b4e commit 4de8ad8

15 files changed

Lines changed: 75 additions & 15 deletions

‎.fern/metadata.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
"exported_class_name": "Zep"
1212
}
1313
},
14-
"originGitCommit": "4135f93a8bc65a8ec8f29a261ce0e721b714cc57",
15-
"sdkVersion": "4.0.0a1"
14+
"originGitCommit": "f5d305f39ed149d17c3af28e057c82f3801d28f2",
15+
"sdkVersion": "4.0.0a2"
1616
}

‎.fern/replay.lock‎

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pyproject.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[project]
22
name = "zep-cloud"
33
dynamic = ["version"]
4-
version = "4.0.0a1"
4+
version = "4.0.0a2"
55

66
[tool.poetry]
77
name = "zep-cloud"
8-
version = "4.0.0a1"
8+
version = "4.0.0a2"
99
description = ""
1010
readme = "README.md"
1111
authors = []

‎src/zep_cloud/__init__.py‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
AsyncResult,
2020
Batch,
2121
BatchItem,
22+
BatchItemKind,
2223
BatchItemPage,
24+
BatchItemStatus,
2325
BatchItemsResponse,
2426
BatchPage,
2527
CloneGraphResult,
@@ -46,6 +48,7 @@
4648
ErrorBody,
4749
Graph,
4850
GraphContextResponse,
51+
GraphDataType,
4952
GraphDeleteResult,
5053
GraphPage,
5154
Instructions,
@@ -64,6 +67,7 @@
6467
Ontology,
6568
ProcessBatchResult,
6669
Project,
70+
RoleType,
6771
SearchRequest,
6872
SubgraphResponse,
6973
Task,
@@ -100,7 +104,9 @@
100104
"BadRequestError": ".errors",
101105
"Batch": ".types",
102106
"BatchItem": ".types",
107+
"BatchItemKind": ".types",
103108
"BatchItemPage": ".types",
109+
"BatchItemStatus": ".types",
104110
"BatchItemsResponse": ".types",
105111
"BatchPage": ".types",
106112
"CloneGraphResult": ".types",
@@ -127,6 +133,7 @@
127133
"ErrorBody": ".types",
128134
"Graph": ".types",
129135
"GraphContextResponse": ".types",
136+
"GraphDataType": ".types",
130137
"GraphDeleteResult": ".types",
131138
"GraphPage": ".types",
132139
"Instructions": ".types",
@@ -146,6 +153,7 @@
146153
"Ontology": ".types",
147154
"ProcessBatchResult": ".types",
148155
"Project": ".types",
156+
"RoleType": ".types",
149157
"SearchRequest": ".types",
150158
"SubgraphResponse": ".types",
151159
"Task": ".types",
@@ -212,7 +220,9 @@ def __dir__():
212220
"BadRequestError",
213221
"Batch",
214222
"BatchItem",
223+
"BatchItemKind",
215224
"BatchItemPage",
225+
"BatchItemStatus",
216226
"BatchItemsResponse",
217227
"BatchPage",
218228
"CloneGraphResult",
@@ -239,6 +249,7 @@ def __dir__():
239249
"ErrorBody",
240250
"Graph",
241251
"GraphContextResponse",
252+
"GraphDataType",
242253
"GraphDeleteResult",
243254
"GraphPage",
244255
"Instructions",
@@ -258,6 +269,7 @@ def __dir__():
258269
"Ontology",
259270
"ProcessBatchResult",
260271
"Project",
272+
"RoleType",
261273
"SearchRequest",
262274
"SubgraphResponse",
263275
"Task",

‎src/zep_cloud/core/client_wrapper.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ def get_headers(self) -> typing.Dict[str, str]:
2727
import platform
2828

2929
headers: typing.Dict[str, str] = {
30-
"User-Agent": "zep-cloud/4.0.0a1",
30+
"User-Agent": "zep-cloud/4.0.0a2",
3131
"X-Fern-Language": "Python",
3232
"X-Fern-Runtime": f"python/{platform.python_version()}",
3333
"X-Fern-Platform": f"{platform.system().lower()}/{platform.release()}",
3434
"X-Fern-SDK-Name": "zep-cloud",
35-
"X-Fern-SDK-Version": "4.0.0a1",
35+
"X-Fern-SDK-Version": "4.0.0a2",
3636
**(self.get_custom_headers() or {}),
3737
}
3838
headers["Authorization"] = f"Api-Key {self.api_key}"

‎src/zep_cloud/types/__init__.py‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
from .async_result import AsyncResult
1919
from .batch import Batch
2020
from .batch_item import BatchItem
21+
from .batch_item_kind import BatchItemKind
2122
from .batch_item_page import BatchItemPage
23+
from .batch_item_status import BatchItemStatus
2224
from .batch_items_response import BatchItemsResponse
2325
from .batch_page import BatchPage
2426
from .clone_graph_result import CloneGraphResult
@@ -45,6 +47,7 @@
4547
from .error_body import ErrorBody
4648
from .graph import Graph
4749
from .graph_context_response import GraphContextResponse
50+
from .graph_data_type import GraphDataType
4851
from .graph_delete_result import GraphDeleteResult
4952
from .graph_page import GraphPage
5053
from .instructions import Instructions
@@ -63,6 +66,7 @@
6366
from .ontology import Ontology
6467
from .process_batch_result import ProcessBatchResult
6568
from .project import Project
69+
from .role_type import RoleType
6670
from .search_request import SearchRequest
6771
from .subgraph_response import SubgraphResponse
6872
from .task import Task
@@ -91,7 +95,9 @@
9195
"AsyncResult": ".async_result",
9296
"Batch": ".batch",
9397
"BatchItem": ".batch_item",
98+
"BatchItemKind": ".batch_item_kind",
9499
"BatchItemPage": ".batch_item_page",
100+
"BatchItemStatus": ".batch_item_status",
95101
"BatchItemsResponse": ".batch_items_response",
96102
"BatchPage": ".batch_page",
97103
"CloneGraphResult": ".clone_graph_result",
@@ -118,6 +124,7 @@
118124
"ErrorBody": ".error_body",
119125
"Graph": ".graph",
120126
"GraphContextResponse": ".graph_context_response",
127+
"GraphDataType": ".graph_data_type",
121128
"GraphDeleteResult": ".graph_delete_result",
122129
"GraphPage": ".graph_page",
123130
"Instructions": ".instructions",
@@ -136,6 +143,7 @@
136143
"Ontology": ".ontology",
137144
"ProcessBatchResult": ".process_batch_result",
138145
"Project": ".project",
146+
"RoleType": ".role_type",
139147
"SearchRequest": ".search_request",
140148
"SubgraphResponse": ".subgraph_response",
141149
"Task": ".task",
@@ -188,7 +196,9 @@ def __dir__():
188196
"AsyncResult",
189197
"Batch",
190198
"BatchItem",
199+
"BatchItemKind",
191200
"BatchItemPage",
201+
"BatchItemStatus",
192202
"BatchItemsResponse",
193203
"BatchPage",
194204
"CloneGraphResult",
@@ -215,6 +225,7 @@ def __dir__():
215225
"ErrorBody",
216226
"Graph",
217227
"GraphContextResponse",
228+
"GraphDataType",
218229
"GraphDeleteResult",
219230
"GraphPage",
220231
"Instructions",
@@ -233,6 +244,7 @@ def __dir__():
233244
"Ontology",
234245
"ProcessBatchResult",
235246
"Project",
247+
"RoleType",
236248
"SearchRequest",
237249
"SubgraphResponse",
238250
"Task",

‎src/zep_cloud/types/add_message.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@
66
import typing_extensions
77
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
88
from ..core.serialization import FieldMetadata
9+
from .role_type import RoleType
910

1011

1112
class AddMessage(UniversalBaseModel):
1213
content: typing.Optional[str] = None
1314
metadata: typing.Optional[typing.Dict[str, typing.Any]] = None
1415
name: typing.Optional[str] = None
15-
role: typing.Optional[str] = None
16+
role: typing.Optional[RoleType] = None
1617
uuid_: typing_extensions.Annotated[
1718
typing.Optional[str], FieldMetadata(alias="uuid"), pydantic.Field(alias="uuid")
1819
] = None

‎src/zep_cloud/types/batch_item.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
import typing_extensions
77
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
88
from ..core.serialization import FieldMetadata
9+
from .batch_item_kind import BatchItemKind
10+
from .batch_item_status import BatchItemStatus
911

1012

1113
class BatchItem(UniversalBaseModel):
@@ -14,9 +16,9 @@ class BatchItem(UniversalBaseModel):
1416
graph_uuid: typing.Optional[str] = None
1517
sequence_index: typing.Optional[int] = None
1618
source_uuid: typing.Optional[str] = None
17-
status: typing.Optional[str] = None
19+
status: typing.Optional[BatchItemStatus] = None
1820
thread_uuid: typing.Optional[str] = None
19-
type: typing.Optional[str] = None
21+
type: typing.Optional[BatchItemKind] = None
2022
uuid_: typing_extensions.Annotated[
2123
typing.Optional[str], FieldMetadata(alias="uuid"), pydantic.Field(alias="uuid")
2224
] = None
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
import typing
4+
5+
BatchItemKind = typing.Union[typing.Literal["graph_episode", "thread_message"], typing.Any]
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
import typing
4+
5+
BatchItemStatus = typing.Union[
6+
typing.Literal["pending", "queued", "processing", "succeeded", "failed", "skipped", "canceled"], typing.Any
7+
]

0 commit comments

Comments
 (0)