Skip to content

Commit 8b95e6f

Browse files
Context templates (#297)
* 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 --------- Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
1 parent e325af0 commit 8b95e6f

File tree

14 files changed

+1685
-11
lines changed

14 files changed

+1685
-11
lines changed

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.11.0"
6+
version = "3.12.0"
77
description = ""
88
readme = "README.md"
99
authors = []

reference.md

Lines changed: 369 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,363 @@
11
# Reference
2+
## Context
3+
<details><summary><code>client.context.<a href="src/zep_cloud/context/client.py">list_context_templates</a>()</code></summary>
4+
<dl>
5+
<dd>
6+
7+
#### 📝 Description
8+
9+
<dl>
10+
<dd>
11+
12+
<dl>
13+
<dd>
14+
15+
Lists all context templates.
16+
</dd>
17+
</dl>
18+
</dd>
19+
</dl>
20+
21+
#### 🔌 Usage
22+
23+
<dl>
24+
<dd>
25+
26+
<dl>
27+
<dd>
28+
29+
```python
30+
from zep_cloud import Zep
31+
32+
client = Zep(
33+
api_key="YOUR_API_KEY",
34+
)
35+
client.context.list_context_templates()
36+
37+
```
38+
</dd>
39+
</dl>
40+
</dd>
41+
</dl>
42+
43+
#### ⚙️ Parameters
44+
45+
<dl>
46+
<dd>
47+
48+
<dl>
49+
<dd>
50+
51+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
52+
53+
</dd>
54+
</dl>
55+
</dd>
56+
</dl>
57+
58+
59+
</dd>
60+
</dl>
61+
</details>
62+
63+
<details><summary><code>client.context.<a href="src/zep_cloud/context/client.py">create_context_template</a>(...)</code></summary>
64+
<dl>
65+
<dd>
66+
67+
#### 📝 Description
68+
69+
<dl>
70+
<dd>
71+
72+
<dl>
73+
<dd>
74+
75+
Creates a new context template.
76+
</dd>
77+
</dl>
78+
</dd>
79+
</dl>
80+
81+
#### 🔌 Usage
82+
83+
<dl>
84+
<dd>
85+
86+
<dl>
87+
<dd>
88+
89+
```python
90+
from zep_cloud import Zep
91+
92+
client = Zep(
93+
api_key="YOUR_API_KEY",
94+
)
95+
client.context.create_context_template(
96+
template="template",
97+
template_id="template_id",
98+
)
99+
100+
```
101+
</dd>
102+
</dl>
103+
</dd>
104+
</dl>
105+
106+
#### ⚙️ Parameters
107+
108+
<dl>
109+
<dd>
110+
111+
<dl>
112+
<dd>
113+
114+
**template:** `str` — The template content (max 1200 characters).
115+
116+
</dd>
117+
</dl>
118+
119+
<dl>
120+
<dd>
121+
122+
**template_id:** `str` — Unique identifier for the template (max 100 characters).
123+
124+
</dd>
125+
</dl>
126+
127+
<dl>
128+
<dd>
129+
130+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
131+
132+
</dd>
133+
</dl>
134+
</dd>
135+
</dl>
136+
137+
138+
</dd>
139+
</dl>
140+
</details>
141+
142+
<details><summary><code>client.context.<a href="src/zep_cloud/context/client.py">get_context_template</a>(...)</code></summary>
143+
<dl>
144+
<dd>
145+
146+
#### 📝 Description
147+
148+
<dl>
149+
<dd>
150+
151+
<dl>
152+
<dd>
153+
154+
Retrieves a context template by template_id.
155+
</dd>
156+
</dl>
157+
</dd>
158+
</dl>
159+
160+
#### 🔌 Usage
161+
162+
<dl>
163+
<dd>
164+
165+
<dl>
166+
<dd>
167+
168+
```python
169+
from zep_cloud import Zep
170+
171+
client = Zep(
172+
api_key="YOUR_API_KEY",
173+
)
174+
client.context.get_context_template(
175+
template_id="template_id",
176+
)
177+
178+
```
179+
</dd>
180+
</dl>
181+
</dd>
182+
</dl>
183+
184+
#### ⚙️ Parameters
185+
186+
<dl>
187+
<dd>
188+
189+
<dl>
190+
<dd>
191+
192+
**template_id:** `str` — Template ID
193+
194+
</dd>
195+
</dl>
196+
197+
<dl>
198+
<dd>
199+
200+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
201+
202+
</dd>
203+
</dl>
204+
</dd>
205+
</dl>
206+
207+
208+
</dd>
209+
</dl>
210+
</details>
211+
212+
<details><summary><code>client.context.<a href="src/zep_cloud/context/client.py">update_context_template</a>(...)</code></summary>
213+
<dl>
214+
<dd>
215+
216+
#### 📝 Description
217+
218+
<dl>
219+
<dd>
220+
221+
<dl>
222+
<dd>
223+
224+
Updates an existing context template by template_id.
225+
</dd>
226+
</dl>
227+
</dd>
228+
</dl>
229+
230+
#### 🔌 Usage
231+
232+
<dl>
233+
<dd>
234+
235+
<dl>
236+
<dd>
237+
238+
```python
239+
from zep_cloud import Zep
240+
241+
client = Zep(
242+
api_key="YOUR_API_KEY",
243+
)
244+
client.context.update_context_template(
245+
template_id="template_id",
246+
template="template",
247+
)
248+
249+
```
250+
</dd>
251+
</dl>
252+
</dd>
253+
</dl>
254+
255+
#### ⚙️ Parameters
256+
257+
<dl>
258+
<dd>
259+
260+
<dl>
261+
<dd>
262+
263+
**template_id:** `str` — Template ID
264+
265+
</dd>
266+
</dl>
267+
268+
<dl>
269+
<dd>
270+
271+
**template:** `str` — The template content (max 1200 characters).
272+
273+
</dd>
274+
</dl>
275+
276+
<dl>
277+
<dd>
278+
279+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
280+
281+
</dd>
282+
</dl>
283+
</dd>
284+
</dl>
285+
286+
287+
</dd>
288+
</dl>
289+
</details>
290+
291+
<details><summary><code>client.context.<a href="src/zep_cloud/context/client.py">delete_context_template</a>(...)</code></summary>
292+
<dl>
293+
<dd>
294+
295+
#### 📝 Description
296+
297+
<dl>
298+
<dd>
299+
300+
<dl>
301+
<dd>
302+
303+
Deletes a context template by template_id.
304+
</dd>
305+
</dl>
306+
</dd>
307+
</dl>
308+
309+
#### 🔌 Usage
310+
311+
<dl>
312+
<dd>
313+
314+
<dl>
315+
<dd>
316+
317+
```python
318+
from zep_cloud import Zep
319+
320+
client = Zep(
321+
api_key="YOUR_API_KEY",
322+
)
323+
client.context.delete_context_template(
324+
template_id="template_id",
325+
)
326+
327+
```
328+
</dd>
329+
</dl>
330+
</dd>
331+
</dl>
332+
333+
#### ⚙️ Parameters
334+
335+
<dl>
336+
<dd>
337+
338+
<dl>
339+
<dd>
340+
341+
**template_id:** `str` — Template ID
342+
343+
</dd>
344+
</dl>
345+
346+
<dl>
347+
<dd>
348+
349+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
350+
351+
</dd>
352+
</dl>
353+
</dd>
354+
</dl>
355+
356+
357+
</dd>
358+
</dl>
359+
</details>
360+
2361
## Graph
3362
<details><summary><code>client.graph.<a href="src/zep_cloud/graph/client.py">list_entity_types</a>(...)</code></summary>
4363
<dl>
@@ -1557,6 +1916,7 @@ client = Zep(
15571916
client.thread.get_user_context(
15581917
thread_id="threadId",
15591918
min_rating=1.1,
1919+
template_id="template_id",
15601920
mode="basic",
15611921
)
15621922

@@ -1590,7 +1950,15 @@ client.thread.get_user_context(
15901950
<dl>
15911951
<dd>
15921952

1593-
**mode:** `typing.Optional[ThreadGetUserContextRequestMode]` — Defaults to summary mode. Use basic for lower latency
1953+
**template_id:** `typing.Optional[str]` — Optional template ID to use for custom context rendering.
1954+
1955+
</dd>
1956+
</dl>
1957+
1958+
<dl>
1959+
<dd>
1960+
1961+
**mode:** `typing.Optional[ThreadGetUserContextRequestMode]` — Deprecated, this field will be removed in a future release. Defaults to summary mode. Use basic for lower latency
15941962

15951963
</dd>
15961964
</dl>

0 commit comments

Comments
 (0)