Skip to content

Commit cd6a511

Browse files
SDK regeneration
1 parent 94ea67a commit cd6a511

File tree

14 files changed

+444
-17
lines changed

14 files changed

+444
-17
lines changed

reference.md

Lines changed: 106 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -825,6 +825,17 @@ client.graph.add_fact_triple(
825825
<dl>
826826
<dd>
827827

828+
**edge_attributes:** `typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]`
829+
830+
Additional attributes of the edge. Values must be scalar types (string, number, boolean, or null).
831+
Nested objects and arrays are not allowed.
832+
833+
</dd>
834+
</dl>
835+
836+
<dl>
837+
<dd>
838+
828839
**expired_at:** `typing.Optional[str]` — The time (if any) at which the edge expires
829840

830841
</dd>
@@ -857,6 +868,17 @@ client.graph.add_fact_triple(
857868
<dl>
858869
<dd>
859870

871+
**source_node_attributes:** `typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]`
872+
873+
Additional attributes of the source node. Values must be scalar types (string, number, boolean, or null).
874+
Nested objects and arrays are not allowed.
875+
876+
</dd>
877+
</dl>
878+
879+
<dl>
880+
<dd>
881+
860882
**source_node_summary:** `typing.Optional[str]` — The summary of the source node to add
861883

862884
</dd>
@@ -873,6 +895,17 @@ client.graph.add_fact_triple(
873895
<dl>
874896
<dd>
875897

898+
**target_node_attributes:** `typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]`
899+
900+
Additional attributes of the target node. Values must be scalar types (string, number, boolean, or null).
901+
Nested objects and arrays are not allowed.
902+
903+
</dd>
904+
</dl>
905+
906+
<dl>
907+
<dd>
908+
876909
**target_node_summary:** `typing.Optional[str]` — The summary of the target node to add
877910

878911
</dd>
@@ -2014,7 +2047,7 @@ client.thread.get_user_context(
20142047
<dl>
20152048
<dd>
20162049

2017-
**min_rating:** `typing.Optional[float]` — The minimum rating by which to filter relevant facts.
2050+
**min_rating:** `typing.Optional[float]`Deprecated, this field will be removed in a future release. The minimum rating by which to filter relevant facts.
20182051

20192052
</dd>
20202053
</dl>
@@ -2659,7 +2692,7 @@ client.user.add(
26592692
<dl>
26602693
<dd>
26612694

2662-
**fact_rating_instruction:** `typing.Optional[FactRatingInstruction]` — Optional instruction to use for fact rating.
2695+
**fact_rating_instruction:** `typing.Optional[FactRatingInstruction]`Deprecated: this field will be removed in a future release. Optional instruction to use for fact rating.
26632696

26642697
</dd>
26652698
</dl>
@@ -2996,7 +3029,7 @@ client.user.update(
29963029
<dl>
29973030
<dd>
29983031

2999-
**fact_rating_instruction:** `typing.Optional[FactRatingInstruction]` — Optional instruction to use for fact rating.
3032+
**fact_rating_instruction:** `typing.Optional[FactRatingInstruction]`Deprecated: this field will be removed in a future release. Optional instruction to use for fact rating.
30003033

30013034
</dd>
30023035
</dl>
@@ -4311,6 +4344,76 @@ client.graph.node.get(
43114344
</dl>
43124345

43134346

4347+
</dd>
4348+
</dl>
4349+
</details>
4350+
4351+
<details><summary><code>client.graph.node.<a href="src/zep_cloud/graph/node/client.py">delete</a>(...)</code></summary>
4352+
<dl>
4353+
<dd>
4354+
4355+
#### 📝 Description
4356+
4357+
<dl>
4358+
<dd>
4359+
4360+
<dl>
4361+
<dd>
4362+
4363+
Deletes a node by UUID.
4364+
</dd>
4365+
</dl>
4366+
</dd>
4367+
</dl>
4368+
4369+
#### 🔌 Usage
4370+
4371+
<dl>
4372+
<dd>
4373+
4374+
<dl>
4375+
<dd>
4376+
4377+
```python
4378+
from zep_cloud import Zep
4379+
4380+
client = Zep(
4381+
api_key="YOUR_API_KEY",
4382+
)
4383+
client.graph.node.delete(
4384+
uuid_="uuid",
4385+
)
4386+
4387+
```
4388+
</dd>
4389+
</dl>
4390+
</dd>
4391+
</dl>
4392+
4393+
#### ⚙️ Parameters
4394+
4395+
<dl>
4396+
<dd>
4397+
4398+
<dl>
4399+
<dd>
4400+
4401+
**uuid_:** `str` — Node UUID
4402+
4403+
</dd>
4404+
</dl>
4405+
4406+
<dl>
4407+
<dd>
4408+
4409+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
4410+
4411+
</dd>
4412+
</dl>
4413+
</dd>
4414+
</dl>
4415+
4416+
43144417
</dd>
43154418
</dl>
43164419
</details>

src/zep_cloud/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
ModelsFactRatingInstruction,
4242
ProjectInfo,
4343
ProjectInfoResponse,
44+
PropertyFilter,
4445
Reranker,
4546
RoleType,
4647
SearchFilters,
@@ -105,6 +106,7 @@
105106
"NotFoundError",
106107
"ProjectInfo",
107108
"ProjectInfoResponse",
109+
"PropertyFilter",
108110
"Reranker",
109111
"RoleType",
110112
"SearchFilters",

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

src/zep_cloud/graph/client.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,12 +259,15 @@ def add_fact_triple(
259259
source_node_name: str,
260260
target_node_name: str,
261261
created_at: typing.Optional[str] = OMIT,
262+
edge_attributes: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
262263
expired_at: typing.Optional[str] = OMIT,
263264
fact_uuid: typing.Optional[str] = OMIT,
264265
graph_id: typing.Optional[str] = OMIT,
265266
invalid_at: typing.Optional[str] = OMIT,
267+
source_node_attributes: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
266268
source_node_summary: typing.Optional[str] = OMIT,
267269
source_node_uuid: typing.Optional[str] = OMIT,
270+
target_node_attributes: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
268271
target_node_summary: typing.Optional[str] = OMIT,
269272
target_node_uuid: typing.Optional[str] = OMIT,
270273
user_id: typing.Optional[str] = OMIT,
@@ -291,6 +294,10 @@ def add_fact_triple(
291294
created_at : typing.Optional[str]
292295
The timestamp of the message
293296
297+
edge_attributes : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
298+
Additional attributes of the edge. Values must be scalar types (string, number, boolean, or null).
299+
Nested objects and arrays are not allowed.
300+
294301
expired_at : typing.Optional[str]
295302
The time (if any) at which the edge expires
296303
@@ -302,12 +309,20 @@ def add_fact_triple(
302309
invalid_at : typing.Optional[str]
303310
The time (if any) at which the fact stops being true
304311
312+
source_node_attributes : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
313+
Additional attributes of the source node. Values must be scalar types (string, number, boolean, or null).
314+
Nested objects and arrays are not allowed.
315+
305316
source_node_summary : typing.Optional[str]
306317
The summary of the source node to add
307318
308319
source_node_uuid : typing.Optional[str]
309320
The source node uuid
310321
322+
target_node_attributes : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
323+
Additional attributes of the target node. Values must be scalar types (string, number, boolean, or null).
324+
Nested objects and arrays are not allowed.
325+
311326
target_node_summary : typing.Optional[str]
312327
The summary of the target node to add
313328
@@ -347,12 +362,15 @@ def add_fact_triple(
347362
source_node_name=source_node_name,
348363
target_node_name=target_node_name,
349364
created_at=created_at,
365+
edge_attributes=edge_attributes,
350366
expired_at=expired_at,
351367
fact_uuid=fact_uuid,
352368
graph_id=graph_id,
353369
invalid_at=invalid_at,
370+
source_node_attributes=source_node_attributes,
354371
source_node_summary=source_node_summary,
355372
source_node_uuid=source_node_uuid,
373+
target_node_attributes=target_node_attributes,
356374
target_node_summary=target_node_summary,
357375
target_node_uuid=target_node_uuid,
358376
user_id=user_id,
@@ -976,12 +994,15 @@ async def add_fact_triple(
976994
source_node_name: str,
977995
target_node_name: str,
978996
created_at: typing.Optional[str] = OMIT,
997+
edge_attributes: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
979998
expired_at: typing.Optional[str] = OMIT,
980999
fact_uuid: typing.Optional[str] = OMIT,
9811000
graph_id: typing.Optional[str] = OMIT,
9821001
invalid_at: typing.Optional[str] = OMIT,
1002+
source_node_attributes: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
9831003
source_node_summary: typing.Optional[str] = OMIT,
9841004
source_node_uuid: typing.Optional[str] = OMIT,
1005+
target_node_attributes: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
9851006
target_node_summary: typing.Optional[str] = OMIT,
9861007
target_node_uuid: typing.Optional[str] = OMIT,
9871008
user_id: typing.Optional[str] = OMIT,
@@ -1008,6 +1029,10 @@ async def add_fact_triple(
10081029
created_at : typing.Optional[str]
10091030
The timestamp of the message
10101031
1032+
edge_attributes : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
1033+
Additional attributes of the edge. Values must be scalar types (string, number, boolean, or null).
1034+
Nested objects and arrays are not allowed.
1035+
10111036
expired_at : typing.Optional[str]
10121037
The time (if any) at which the edge expires
10131038
@@ -1019,12 +1044,20 @@ async def add_fact_triple(
10191044
invalid_at : typing.Optional[str]
10201045
The time (if any) at which the fact stops being true
10211046
1047+
source_node_attributes : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
1048+
Additional attributes of the source node. Values must be scalar types (string, number, boolean, or null).
1049+
Nested objects and arrays are not allowed.
1050+
10221051
source_node_summary : typing.Optional[str]
10231052
The summary of the source node to add
10241053
10251054
source_node_uuid : typing.Optional[str]
10261055
The source node uuid
10271056
1057+
target_node_attributes : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
1058+
Additional attributes of the target node. Values must be scalar types (string, number, boolean, or null).
1059+
Nested objects and arrays are not allowed.
1060+
10281061
target_node_summary : typing.Optional[str]
10291062
The summary of the target node to add
10301063
@@ -1072,12 +1105,15 @@ async def main() -> None:
10721105
source_node_name=source_node_name,
10731106
target_node_name=target_node_name,
10741107
created_at=created_at,
1108+
edge_attributes=edge_attributes,
10751109
expired_at=expired_at,
10761110
fact_uuid=fact_uuid,
10771111
graph_id=graph_id,
10781112
invalid_at=invalid_at,
1113+
source_node_attributes=source_node_attributes,
10791114
source_node_summary=source_node_summary,
10801115
source_node_uuid=source_node_uuid,
1116+
target_node_attributes=target_node_attributes,
10811117
target_node_summary=target_node_summary,
10821118
target_node_uuid=target_node_uuid,
10831119
user_id=user_id,

0 commit comments

Comments
 (0)