You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
0 commit comments