Skip to content

Commit 0da9323

Browse files
SDK regeneration
1 parent 6c08ec4 commit 0da9323

File tree

8 files changed

+1104
-2
lines changed

8 files changed

+1104
-2
lines changed

reference.md

Lines changed: 254 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,260 @@ client.context.delete_context_template(
359359
</details>
360360

361361
## Graph
362+
<details><summary><code>client.graph.<a href="src/zep_cloud/graph/client.py">list_custom_instructions</a>(...)</code></summary>
363+
<dl>
364+
<dd>
365+
366+
#### 📝 Description
367+
368+
<dl>
369+
<dd>
370+
371+
<dl>
372+
<dd>
373+
374+
Lists all custom instructions for a project, user, or graph.
375+
</dd>
376+
</dl>
377+
</dd>
378+
</dl>
379+
380+
#### 🔌 Usage
381+
382+
<dl>
383+
<dd>
384+
385+
<dl>
386+
<dd>
387+
388+
```python
389+
from zep_cloud import Zep
390+
391+
client = Zep(
392+
api_key="YOUR_API_KEY",
393+
)
394+
client.graph.list_custom_instructions(
395+
user_id="user_id",
396+
graph_id="graph_id",
397+
)
398+
399+
```
400+
</dd>
401+
</dl>
402+
</dd>
403+
</dl>
404+
405+
#### ⚙️ Parameters
406+
407+
<dl>
408+
<dd>
409+
410+
<dl>
411+
<dd>
412+
413+
**user_id:** `typing.Optional[str]` — User ID to get user-specific instructions
414+
415+
</dd>
416+
</dl>
417+
418+
<dl>
419+
<dd>
420+
421+
**graph_id:** `typing.Optional[str]` — Graph ID to get graph-specific instructions
422+
423+
</dd>
424+
</dl>
425+
426+
<dl>
427+
<dd>
428+
429+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
430+
431+
</dd>
432+
</dl>
433+
</dd>
434+
</dl>
435+
436+
437+
</dd>
438+
</dl>
439+
</details>
440+
441+
<details><summary><code>client.graph.<a href="src/zep_cloud/graph/client.py">add_custom_instructions</a>(...)</code></summary>
442+
<dl>
443+
<dd>
444+
445+
#### 📝 Description
446+
447+
<dl>
448+
<dd>
449+
450+
<dl>
451+
<dd>
452+
453+
Adds new custom instructions for graphs without removing existing ones. If user_ids or graph_ids is empty, adds to project-wide default instructions.
454+
</dd>
455+
</dl>
456+
</dd>
457+
</dl>
458+
459+
#### 🔌 Usage
460+
461+
<dl>
462+
<dd>
463+
464+
<dl>
465+
<dd>
466+
467+
```python
468+
from zep_cloud import CustomInstruction, Zep
469+
470+
client = Zep(
471+
api_key="YOUR_API_KEY",
472+
)
473+
client.graph.add_custom_instructions(
474+
instructions=[
475+
CustomInstruction(
476+
name="name",
477+
text="text",
478+
)
479+
],
480+
)
481+
482+
```
483+
</dd>
484+
</dl>
485+
</dd>
486+
</dl>
487+
488+
#### ⚙️ Parameters
489+
490+
<dl>
491+
<dd>
492+
493+
<dl>
494+
<dd>
495+
496+
**instructions:** `typing.Sequence[CustomInstruction]` — Instructions to add to the graph.
497+
498+
</dd>
499+
</dl>
500+
501+
<dl>
502+
<dd>
503+
504+
**graph_ids:** `typing.Optional[typing.Sequence[str]]` — Graph IDs to add the instructions to. If empty, the instructions are added to the project-wide default.
505+
506+
</dd>
507+
</dl>
508+
509+
<dl>
510+
<dd>
511+
512+
**user_ids:** `typing.Optional[typing.Sequence[str]]` — User IDs to add the instructions to. If empty, the instructions are added to the project-wide default.
513+
514+
</dd>
515+
</dl>
516+
517+
<dl>
518+
<dd>
519+
520+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
521+
522+
</dd>
523+
</dl>
524+
</dd>
525+
</dl>
526+
527+
528+
</dd>
529+
</dl>
530+
</details>
531+
532+
<details><summary><code>client.graph.<a href="src/zep_cloud/graph/client.py">delete_custom_instructions</a>(...)</code></summary>
533+
<dl>
534+
<dd>
535+
536+
#### 📝 Description
537+
538+
<dl>
539+
<dd>
540+
541+
<dl>
542+
<dd>
543+
544+
Deletes custom instructions for graphs or project wide defaults.
545+
</dd>
546+
</dl>
547+
</dd>
548+
</dl>
549+
550+
#### 🔌 Usage
551+
552+
<dl>
553+
<dd>
554+
555+
<dl>
556+
<dd>
557+
558+
```python
559+
from zep_cloud import Zep
560+
561+
client = Zep(
562+
api_key="YOUR_API_KEY",
563+
)
564+
client.graph.delete_custom_instructions()
565+
566+
```
567+
</dd>
568+
</dl>
569+
</dd>
570+
</dl>
571+
572+
#### ⚙️ Parameters
573+
574+
<dl>
575+
<dd>
576+
577+
<dl>
578+
<dd>
579+
580+
**graph_ids:** `typing.Optional[typing.Sequence[str]]` — Determines which group graphs will have their custom instructions deleted. If no graphs are provided, the project-wide custom instructions will be affected.
581+
582+
</dd>
583+
</dl>
584+
585+
<dl>
586+
<dd>
587+
588+
**instruction_names:** `typing.Optional[typing.Sequence[str]]` — Unique identifier for the instructions to be deleted. If empty deletes all instructions.
589+
590+
</dd>
591+
</dl>
592+
593+
<dl>
594+
<dd>
595+
596+
**user_ids:** `typing.Optional[typing.Sequence[str]]` — Determines which user graphs will have their custom instructions deleted. If no users are provided, the project-wide custom instructions will be affected.
597+
598+
</dd>
599+
</dl>
600+
601+
<dl>
602+
<dd>
603+
604+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
605+
606+
</dd>
607+
</dl>
608+
</dd>
609+
</dl>
610+
611+
612+
</dd>
613+
</dl>
614+
</details>
615+
362616
<details><summary><code>client.graph.<a href="src/zep_cloud/graph/client.py">list_entity_types</a>(...)</code></summary>
363617
<dl>
364618
<dd>

src/zep_cloud/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
CloneGraphResponse,
1111
ComparisonOperator,
1212
ContextTemplateResponse,
13+
CustomInstruction,
1314
DateFilter,
1415
EdgeType,
1516
EntityEdge,
@@ -34,6 +35,7 @@
3435
GraphSearchResults,
3536
GraphSearchScope,
3637
ListContextTemplatesResponse,
38+
ListCustomInstructionsResponse,
3739
ListUserInstructionsResponse,
3840
Message,
3941
MessageListResponse,
@@ -73,6 +75,7 @@
7375
"CloneGraphResponse",
7476
"ComparisonOperator",
7577
"ContextTemplateResponse",
78+
"CustomInstruction",
7679
"DateFilter",
7780
"EdgeType",
7881
"EntityEdge",
@@ -98,6 +101,7 @@
98101
"GraphSearchScope",
99102
"InternalServerError",
100103
"ListContextTemplatesResponse",
104+
"ListCustomInstructionsResponse",
101105
"ListUserInstructionsResponse",
102106
"Message",
103107
"MessageListResponse",

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

0 commit comments

Comments
 (0)