26
26
from ..types .message_list_response import MessageListResponse
27
27
from ..types .new_fact import NewFact
28
28
from ..types .question import Question
29
+ from ..types .role_type import RoleType
29
30
from ..types .search_scope import SearchScope
30
31
from ..types .search_type import SearchType
31
32
from ..types .session import Session
@@ -975,6 +976,7 @@ def add(
975
976
* ,
976
977
messages : typing .Sequence [Message ],
977
978
fact_instruction : typing .Optional [str ] = OMIT ,
979
+ ignore_roles : typing .Optional [typing .Sequence [RoleType ]] = OMIT ,
978
980
return_context : typing .Optional [bool ] = OMIT ,
979
981
summary_instruction : typing .Optional [str ] = OMIT ,
980
982
request_options : typing .Optional [RequestOptions ] = None ,
@@ -993,6 +995,11 @@ def add(
993
995
fact_instruction : typing.Optional[str]
994
996
Deprecated
995
997
998
+ ignore_roles : typing.Optional[typing.Sequence[RoleType]]
999
+ Optional list of role types to ignore when adding messages to graph memory.
1000
+ The message itself will still be added retained and used as context for messages
1001
+ that are added to a user's graph.
1002
+
996
1003
return_context : typing.Optional[bool]
997
1004
Optionally return memory context relevant to the most recent messages.
998
1005
@@ -1030,6 +1037,7 @@ def add(
1030
1037
method = "POST" ,
1031
1038
json = {
1032
1039
"fact_instruction" : fact_instruction ,
1040
+ "ignore_roles" : ignore_roles ,
1033
1041
"messages" : messages ,
1034
1042
"return_context" : return_context ,
1035
1043
"summary_instruction" : summary_instruction ,
@@ -2528,6 +2536,7 @@ async def add(
2528
2536
* ,
2529
2537
messages : typing .Sequence [Message ],
2530
2538
fact_instruction : typing .Optional [str ] = OMIT ,
2539
+ ignore_roles : typing .Optional [typing .Sequence [RoleType ]] = OMIT ,
2531
2540
return_context : typing .Optional [bool ] = OMIT ,
2532
2541
summary_instruction : typing .Optional [str ] = OMIT ,
2533
2542
request_options : typing .Optional [RequestOptions ] = None ,
@@ -2546,6 +2555,11 @@ async def add(
2546
2555
fact_instruction : typing.Optional[str]
2547
2556
Deprecated
2548
2557
2558
+ ignore_roles : typing.Optional[typing.Sequence[RoleType]]
2559
+ Optional list of role types to ignore when adding messages to graph memory.
2560
+ The message itself will still be added retained and used as context for messages
2561
+ that are added to a user's graph.
2562
+
2549
2563
return_context : typing.Optional[bool]
2550
2564
Optionally return memory context relevant to the most recent messages.
2551
2565
@@ -2591,6 +2605,7 @@ async def main() -> None:
2591
2605
method = "POST" ,
2592
2606
json = {
2593
2607
"fact_instruction" : fact_instruction ,
2608
+ "ignore_roles" : ignore_roles ,
2594
2609
"messages" : messages ,
2595
2610
"return_context" : return_context ,
2596
2611
"summary_instruction" : summary_instruction ,
0 commit comments