@@ -139,9 +139,10 @@ def set_entity_types_internal(
139
139
def add (
140
140
self ,
141
141
* ,
142
- data : typing .Optional [str ] = OMIT ,
142
+ data : str ,
143
+ type : GraphDataType ,
143
144
group_id : typing .Optional [str ] = OMIT ,
144
- type : typing .Optional [GraphDataType ] = OMIT ,
145
+ source_description : typing .Optional [str ] = OMIT ,
145
146
user_id : typing .Optional [str ] = OMIT ,
146
147
request_options : typing .Optional [RequestOptions ] = None
147
148
) -> Episode :
@@ -150,11 +151,13 @@ def add(
150
151
151
152
Parameters
152
153
----------
153
- data : typing.Optional[str]
154
+ data : str
155
+
156
+ type : GraphDataType
154
157
155
158
group_id : typing.Optional[str]
156
159
157
- type : typing.Optional[GraphDataType ]
160
+ source_description : typing.Optional[str ]
158
161
159
162
user_id : typing.Optional[str]
160
163
@@ -173,12 +176,21 @@ def add(
173
176
client = Zep(
174
177
api_key="YOUR_API_KEY",
175
178
)
176
- client.graph.add()
179
+ client.graph.add(
180
+ data="data",
181
+ type="text",
182
+ )
177
183
"""
178
184
_response = self ._client_wrapper .httpx_client .request (
179
185
"graph" ,
180
186
method = "POST" ,
181
- json = {"data" : data , "group_id" : group_id , "type" : type , "user_id" : user_id },
187
+ json = {
188
+ "data" : data ,
189
+ "group_id" : group_id ,
190
+ "source_description" : source_description ,
191
+ "type" : type ,
192
+ "user_id" : user_id ,
193
+ },
182
194
request_options = request_options ,
183
195
omit = OMIT ,
184
196
)
@@ -561,9 +573,10 @@ async def main() -> None:
561
573
async def add (
562
574
self ,
563
575
* ,
564
- data : typing .Optional [str ] = OMIT ,
576
+ data : str ,
577
+ type : GraphDataType ,
565
578
group_id : typing .Optional [str ] = OMIT ,
566
- type : typing .Optional [GraphDataType ] = OMIT ,
579
+ source_description : typing .Optional [str ] = OMIT ,
567
580
user_id : typing .Optional [str ] = OMIT ,
568
581
request_options : typing .Optional [RequestOptions ] = None
569
582
) -> Episode :
@@ -572,11 +585,13 @@ async def add(
572
585
573
586
Parameters
574
587
----------
575
- data : typing.Optional[str]
588
+ data : str
589
+
590
+ type : GraphDataType
576
591
577
592
group_id : typing.Optional[str]
578
593
579
- type : typing.Optional[GraphDataType ]
594
+ source_description : typing.Optional[str ]
580
595
581
596
user_id : typing.Optional[str]
582
597
@@ -600,15 +615,24 @@ async def add(
600
615
601
616
602
617
async def main() -> None:
603
- await client.graph.add()
618
+ await client.graph.add(
619
+ data="data",
620
+ type="text",
621
+ )
604
622
605
623
606
624
asyncio.run(main())
607
625
"""
608
626
_response = await self ._client_wrapper .httpx_client .request (
609
627
"graph" ,
610
628
method = "POST" ,
611
- json = {"data" : data , "group_id" : group_id , "type" : type , "user_id" : user_id },
629
+ json = {
630
+ "data" : data ,
631
+ "group_id" : group_id ,
632
+ "source_description" : source_description ,
633
+ "type" : type ,
634
+ "user_id" : user_id ,
635
+ },
612
636
request_options = request_options ,
613
637
omit = OMIT ,
614
638
)
0 commit comments