Skip to content

Commit 58d382c

Browse files
SessionID in messages api, get edges/episodes for node (#255)
* SDK regeneration * SDK regeneration * chore: Version bump * SDK regeneration * SDK regeneration * SDK regeneration * SDK regeneration * SDK regeneration * SDK regeneration * SDK regeneration * SDK regeneration * chore: Version bump * poetry lock * chore: version bump * SDK regeneration * chore: Version bump * SDK regeneration * chore: version bump * SDK regeneration * SDK regeneration * SDK regeneration * feat: Customer provided entity types * fix * chore: version bump * SDK regeneration * fix * chore: Support entity class descriptor * SDK regeneration * fix: linter errors * chore: Version bump * SDK regeneration * SDK regeneration * SDK regeneration * chore: version bump * chore: revert unintended changes * chore: Version bump * SDK regeneration * chore: Version bump * SDK regeneration * chore: Version bump * SDK regeneration * SDK regeneration * SDK regeneration * SDK regeneration * SDK regeneration * chore: Version bump * SDK regeneration * chore: Version bump * SDK regeneration * chore: regenerate poetry file * Remove pydantic version check and update mypy to 1.9.0 * chore: Bump version * SDK regeneration * SDK regeneration * SDK regeneration * SDK regeneration * SDK regeneration --------- Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
1 parent cd82e60 commit 58d382c

File tree

7 files changed

+372
-13
lines changed

7 files changed

+372
-13
lines changed

examples/chat_history/chat_history_shoe_purchase.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
history = [
22
{
3-
"role": "user",
3+
"role": "Jane",
44
"role_type": "user",
55
"content": (
66
"Hi there, I'm looking for a new pair of shoes. I'm not sure where"
@@ -17,7 +17,7 @@
1717
),
1818
},
1919
{
20-
"role": "user",
20+
"role": "Jane",
2121
"role_type": "user",
2222
"content": "I like Nike and Adidas, but I'm open to other brands too.",
2323
},
@@ -32,7 +32,7 @@
3232
),
3333
},
3434
{
35-
"role": "user",
35+
"role": "Jane",
3636
"role_type": "user",
3737
"content": "I'll be using them for running.",
3838
},
@@ -46,7 +46,7 @@
4646
),
4747
},
4848
{
49-
"role": "user",
49+
"role": "Jane",
5050
"role_type": "user",
5151
"content": ("I wear a men's size 10, and I'm not sure about the foot width."),
5252
},
@@ -59,7 +59,7 @@
5959
),
6060
},
6161
{
62-
"role": "user",
62+
"role": "Jane",
6363
"role_type": "user",
6464
"content": (
6565
"I have a bit of a pronation issue. Do I need to consider that"
@@ -78,7 +78,7 @@
7878
),
7979
},
8080
{
81-
"role": "user",
81+
"role": "Jane",
8282
"role_type": "user",
8383
"content": "Great, I have a budget of around $120.",
8484
},
@@ -103,7 +103,7 @@
103103
"metadata": {"bar": "foo"},
104104
},
105105
{
106-
"role": "user",
106+
"role": "Jane",
107107
"role_type": "user",
108108
"content": (
109109
"I've heard good things about Brooks, but I was kind of hoping to"
@@ -121,7 +121,7 @@
121121
),
122122
},
123123
{
124-
"role": "user",
124+
"role": "Jane",
125125
"role_type": "user",
126126
"content": "They're nice looking. Yes, I think I'll go with those.",
127127
},

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "zep-cloud"
3-
version = "2.12.1"
3+
version = "2.12.2"
44
description = ""
55
readme = "README.md"
66
authors = []

reference.md

Lines changed: 141 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3292,7 +3292,7 @@ client.memory.get_session_messages(
32923292
<dl>
32933293
<dd>
32943294

3295-
Returns a specific message from a session.
3295+
Deprecated: Use graph.episodes.get instead. Returns a specific message from a session.
32963296
</dd>
32973297
</dl>
32983298
</dd>
@@ -5686,6 +5686,146 @@ client.graph.node.get_by_user_id(
56865686
</dl>
56875687

56885688

5689+
</dd>
5690+
</dl>
5691+
</details>
5692+
5693+
<details><summary><code>client.graph.node.<a href="src/zep_cloud/graph/node/client.py">get_edges</a>(...)</code></summary>
5694+
<dl>
5695+
<dd>
5696+
5697+
#### 📝 Description
5698+
5699+
<dl>
5700+
<dd>
5701+
5702+
<dl>
5703+
<dd>
5704+
5705+
Returns all edges for a node
5706+
</dd>
5707+
</dl>
5708+
</dd>
5709+
</dl>
5710+
5711+
#### 🔌 Usage
5712+
5713+
<dl>
5714+
<dd>
5715+
5716+
<dl>
5717+
<dd>
5718+
5719+
```python
5720+
from zep_cloud.client import Zep
5721+
5722+
client = Zep(
5723+
api_key="YOUR_API_KEY",
5724+
)
5725+
client.graph.node.get_edges(
5726+
node_uuid="node_uuid",
5727+
)
5728+
5729+
```
5730+
</dd>
5731+
</dl>
5732+
</dd>
5733+
</dl>
5734+
5735+
#### ⚙️ Parameters
5736+
5737+
<dl>
5738+
<dd>
5739+
5740+
<dl>
5741+
<dd>
5742+
5743+
**node_uuid:** `str` — Node UUID
5744+
5745+
</dd>
5746+
</dl>
5747+
5748+
<dl>
5749+
<dd>
5750+
5751+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
5752+
5753+
</dd>
5754+
</dl>
5755+
</dd>
5756+
</dl>
5757+
5758+
5759+
</dd>
5760+
</dl>
5761+
</details>
5762+
5763+
<details><summary><code>client.graph.node.<a href="src/zep_cloud/graph/node/client.py">get_episodes</a>(...)</code></summary>
5764+
<dl>
5765+
<dd>
5766+
5767+
#### 📝 Description
5768+
5769+
<dl>
5770+
<dd>
5771+
5772+
<dl>
5773+
<dd>
5774+
5775+
Returns all episodes that mentioned a given node
5776+
</dd>
5777+
</dl>
5778+
</dd>
5779+
</dl>
5780+
5781+
#### 🔌 Usage
5782+
5783+
<dl>
5784+
<dd>
5785+
5786+
<dl>
5787+
<dd>
5788+
5789+
```python
5790+
from zep_cloud.client import Zep
5791+
5792+
client = Zep(
5793+
api_key="YOUR_API_KEY",
5794+
)
5795+
client.graph.node.get_episodes(
5796+
node_uuid="node_uuid",
5797+
)
5798+
5799+
```
5800+
</dd>
5801+
</dl>
5802+
</dd>
5803+
</dl>
5804+
5805+
#### ⚙️ Parameters
5806+
5807+
<dl>
5808+
<dd>
5809+
5810+
<dl>
5811+
<dd>
5812+
5813+
**node_uuid:** `str` — Node UUID
5814+
5815+
</dd>
5816+
</dl>
5817+
5818+
<dl>
5819+
<dd>
5820+
5821+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
5822+
5823+
</dd>
5824+
</dl>
5825+
</dd>
5826+
</dl>
5827+
5828+
56895829
</dd>
56905830
</dl>
56915831
</details>

src/zep_cloud/core/client_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def get_headers(self) -> typing.Dict[str, str]:
1717
headers: typing.Dict[str, str] = {
1818
"X-Fern-Language": "Python",
1919
"X-Fern-SDK-Name": "zep-cloud",
20-
"X-Fern-SDK-Version": "2.12.1",
20+
"X-Fern-SDK-Version": "2.12.2",
2121
}
2222
headers["Authorization"] = f"Api-Key {self.api_key}"
2323
return headers

0 commit comments

Comments
 (0)