Skip to content

Commit fe3b286

Browse files
Delete node method, search property filters, accept attributes when adding fact triple (#300)
* chore: Fix fact ratings table * SDK regeneration * chore: Version bump * chore: Version bump * SDK regeneration * chore: Add support for user/graph ontology targets * SDK regeneration * chore: Add support for setting entity/edges on a list of users/graphs * SDK regeneration * chore: Bump version * SDK regeneration * feat: Update compose context string util to include episodes and display entity attributes * chore: Bump version * fix: tests * chore: Remove redundant timestamp conversion branch * SDK regeneration * chore: Version bump * SDK regeneration * SDK regeneration * fix: tests * chore: Version bump * SDK regeneration * chore: Simplify date parsing in string composition utility * chore: Add python date util dep * chore: Bump version * SDK regeneration * SDK regeneration * chore: Bump version * SDK regeneration * chore: Remove langchain dependency * chore: Bump version * SDK regeneration * SDK regeneration * SDK regeneration * chore: Bump version * SDK regeneration * SDK regeneration * SDK regeneration * SDK regeneration * SDK regeneration * SDK regeneration * SDK regeneration * SDK regeneration * SDK regeneration * chore: Bump version * SDK regeneration * SDK regeneration * SDK regeneration * chore: Bump version * SDK regeneration * SDK regeneration * SDK regeneration * SDK regeneration * SDK regeneration * chore: Bump version * SDK regeneration * SDK regeneration * SDK regeneration * SDK regeneration * SDK regeneration * chore: Bump version * SDK regeneration * chore: Bump version * SDK regeneration * SDK regeneration * SDK regeneration * chore: Bump version * SDK regeneration * SDK regeneration * SDK regeneration --------- Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
1 parent 5f58714 commit fe3b286

16 files changed

Lines changed: 491 additions & 69 deletions

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "zep-cloud"
33

44
[tool.poetry]
55
name = "zep-cloud"
6-
version = "3.13.0"
6+
version = "3.14.0"
77
description = ""
88
readme = "README.md"
99
authors = []

‎reference.md‎

Lines changed: 113 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -767,8 +767,6 @@ client = Zep(
767767
client.graph.add_fact_triple(
768768
fact="fact",
769769
fact_name="fact_name",
770-
source_node_name="source_node_name",
771-
target_node_name="target_node_name",
772770
)
773771

774772
```
@@ -801,55 +799,69 @@ client.graph.add_fact_triple(
801799
<dl>
802800
<dd>
803801

804-
**source_node_name:** `str` — The name of the source node to add
802+
**created_at:** `typing.Optional[str]` — The timestamp of the message
805803

806804
</dd>
807805
</dl>
808806

809807
<dl>
810808
<dd>
811809

812-
**target_node_name:** `str` — The name of the target node to add
810+
**edge_attributes:** `typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]`
811+
812+
Additional attributes of the edge. Values must be scalar types (string, number, boolean, or null).
813+
Nested objects and arrays are not allowed.
813814

814815
</dd>
815816
</dl>
816817

817818
<dl>
818819
<dd>
819820

820-
**created_at:** `typing.Optional[str]` — The timestamp of the message
821+
**expired_at:** `typing.Optional[str]` — The time (if any) at which the edge expires
821822

822823
</dd>
823824
</dl>
824825

825826
<dl>
826827
<dd>
827828

828-
**expired_at:** `typing.Optional[str]` — The time (if any) at which the edge expires
829+
**fact_uuid:** `typing.Optional[str]` — The uuid of the edge to add
829830

830831
</dd>
831832
</dl>
832833

833834
<dl>
834835
<dd>
835836

836-
**fact_uuid:** `typing.Optional[str]` — The uuid of the edge to add
837+
**graph_id:** `typing.Optional[str]`
837838

838839
</dd>
839840
</dl>
840841

841842
<dl>
842843
<dd>
843844

844-
**graph_id:** `typing.Optional[str]`
845+
**invalid_at:** `typing.Optional[str]` — The time (if any) at which the fact stops being true
845846

846847
</dd>
847848
</dl>
848849

849850
<dl>
850851
<dd>
851852

852-
**invalid_at:** `typing.Optional[str]` — The time (if any) at which the fact stops being true
853+
**source_node_attributes:** `typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]`
854+
855+
Additional attributes of the source node. Values must be scalar types (string, number, boolean, or null).
856+
Nested objects and arrays are not allowed.
857+
858+
</dd>
859+
</dl>
860+
861+
<dl>
862+
<dd>
863+
864+
**source_node_name:** `typing.Optional[str]` — The name of the source node to add
853865

854866
</dd>
855867
</dl>
@@ -873,6 +885,25 @@ client.graph.add_fact_triple(
873885
<dl>
874886
<dd>
875887

888+
**target_node_attributes:** `typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]`
889+
890+
Additional attributes of the target node. Values must be scalar types (string, number, boolean, or null).
891+
Nested objects and arrays are not allowed.
892+
893+
</dd>
894+
</dl>
895+
896+
<dl>
897+
<dd>
898+
899+
**target_node_name:** `typing.Optional[str]` — The name of the target node to add
900+
901+
</dd>
902+
</dl>
903+
904+
<dl>
905+
<dd>
906+
876907
**target_node_summary:** `typing.Optional[str]` — The summary of the target node to add
877908

878909
</dd>
@@ -2014,7 +2045,7 @@ client.thread.get_user_context(
20142045
<dl>
20152046
<dd>
20162047

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

20192050
</dd>
20202051
</dl>
@@ -2659,7 +2690,7 @@ client.user.add(
26592690
<dl>
26602691
<dd>
26612692

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

26642695
</dd>
26652696
</dl>
@@ -2996,7 +3027,7 @@ client.user.update(
29963027
<dl>
29973028
<dd>
29983029

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

30013032
</dd>
30023033
</dl>
@@ -4311,6 +4342,76 @@ client.graph.node.get(
43114342
</dl>
43124343

43134344

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

0 commit comments

Comments
 (0)