zep-cloud 2.10.0__tar.gz → 2.10.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/PKG-INFO +1 -1
  2. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/pyproject.toml +1 -1
  3. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/core/client_wrapper.py +1 -1
  4. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/graph/client.py +48 -34
  5. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/entity_node.py +5 -0
  6. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/episode.py +0 -1
  7. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/LICENSE +0 -0
  8. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/README.md +0 -0
  9. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/__init__.py +0 -0
  10. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/base_client.py +0 -0
  11. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/client.py +0 -0
  12. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/core/__init__.py +0 -0
  13. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/core/api_error.py +0 -0
  14. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/core/datetime_utils.py +0 -0
  15. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/core/file.py +0 -0
  16. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/core/http_client.py +0 -0
  17. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/core/jsonable_encoder.py +0 -0
  18. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/core/pydantic_utilities.py +0 -0
  19. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/core/query_encoder.py +0 -0
  20. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/core/remove_none_from_dict.py +0 -0
  21. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/core/request_options.py +0 -0
  22. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/document/__init__.py +0 -0
  23. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/document/client.py +0 -0
  24. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/environment.py +0 -0
  25. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/errors/__init__.py +0 -0
  26. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/errors/bad_request_error.py +0 -0
  27. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/errors/conflict_error.py +0 -0
  28. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/errors/internal_server_error.py +0 -0
  29. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/errors/not_found_error.py +0 -0
  30. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/errors/unauthorized_error.py +0 -0
  31. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/external_clients/document.py +0 -0
  32. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/external_clients/graph.py +0 -0
  33. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/external_clients/memory.py +0 -0
  34. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/external_clients/ontology.py +0 -0
  35. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/external_clients/user.py +0 -0
  36. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/extractor/__init__.py +0 -0
  37. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/extractor/models.py +0 -0
  38. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/graph/__init__.py +0 -0
  39. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/graph/edge/__init__.py +0 -0
  40. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/graph/edge/client.py +0 -0
  41. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/graph/episode/__init__.py +0 -0
  42. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/graph/episode/client.py +0 -0
  43. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/graph/node/__init__.py +0 -0
  44. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/graph/node/client.py +0 -0
  45. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/group/__init__.py +0 -0
  46. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/group/client.py +0 -0
  47. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/memory/__init__.py +0 -0
  48. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/memory/client.py +0 -0
  49. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/py.typed +0 -0
  50. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/__init__.py +0 -0
  51. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/add_memory_response.py +0 -0
  52. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/add_triple_response.py +0 -0
  53. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/api_error.py +0 -0
  54. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/apidata_document.py +0 -0
  55. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/apidata_document_collection.py +0 -0
  56. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/apidata_document_search_response.py +0 -0
  57. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/apidata_document_with_score.py +0 -0
  58. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/classify_session_request.py +0 -0
  59. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/create_document_request.py +0 -0
  60. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/end_session_response.py +0 -0
  61. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/end_sessions_response.py +0 -0
  62. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/entity_edge.py +0 -0
  63. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/entity_property.py +0 -0
  64. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/entity_property_type.py +0 -0
  65. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/entity_type.py +0 -0
  66. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/entity_type_response.py +0 -0
  67. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/episode_response.py +0 -0
  68. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/fact.py +0 -0
  69. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/fact_rating_examples.py +0 -0
  70. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/fact_rating_instruction.py +0 -0
  71. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/fact_response.py +0 -0
  72. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/facts_response.py +0 -0
  73. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/graph_data_type.py +0 -0
  74. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/graph_edges_request.py +0 -0
  75. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/graph_nodes_request.py +0 -0
  76. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/graph_search_results.py +0 -0
  77. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/graph_search_scope.py +0 -0
  78. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/group.py +0 -0
  79. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/group_list_response.py +0 -0
  80. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/memory.py +0 -0
  81. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/memory_search_result.py +0 -0
  82. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/message.py +0 -0
  83. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/message_list_response.py +0 -0
  84. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/new_fact.py +0 -0
  85. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/question.py +0 -0
  86. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/reranker.py +0 -0
  87. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/role_type.py +0 -0
  88. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/search_filters.py +0 -0
  89. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/search_scope.py +0 -0
  90. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/search_type.py +0 -0
  91. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/session.py +0 -0
  92. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/session_classification.py +0 -0
  93. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/session_list_response.py +0 -0
  94. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/session_search_response.py +0 -0
  95. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/session_search_result.py +0 -0
  96. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/success_response.py +0 -0
  97. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/summary.py +0 -0
  98. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/summary_list_response.py +0 -0
  99. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/update_document_list_request.py +0 -0
  100. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/user.py +0 -0
  101. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/user_list_response.py +0 -0
  102. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/types/user_node_response.py +0 -0
  103. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/user/__init__.py +0 -0
  104. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/user/client.py +0 -0
  105. {zep_cloud-2.10.0 → zep_cloud-2.10.2}/src/zep_cloud/version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: zep-cloud
3
- Version: 2.10.0
3
+ Version: 2.10.2
4
4
  Summary:
5
5
  Requires-Python: >=3.9.0,<4.0
6
6
  Classifier: Programming Language :: Python :: 3
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "zep-cloud"
3
- version = "2.10.0"
3
+ version = "2.10.2"
4
4
  description = ""
5
5
  readme = "README.md"
6
6
  authors = []
@@ -17,7 +17,7 @@ class BaseClientWrapper:
17
17
  headers: typing.Dict[str, str] = {
18
18
  "X-Fern-Language": "Python",
19
19
  "X-Fern-SDK-Name": "zep-cloud",
20
- "X-Fern-SDK-Version": "2.10.0",
20
+ "X-Fern-SDK-Version": "2.10.2",
21
21
  }
22
22
  headers["Authorization"] = f"Api-Key {self.api_key}"
23
23
  return headers
@@ -79,14 +79,17 @@ class GraphClient:
79
79
  raise core_api_error_ApiError(status_code=_response.status_code, body=_response_json)
80
80
 
81
81
  def set_entity_types_internal(
82
- self, *, entity_types: typing.Sequence[EntityType], request_options: typing.Optional[RequestOptions] = None
82
+ self,
83
+ *,
84
+ entity_types: typing.Optional[typing.Sequence[EntityType]] = OMIT,
85
+ request_options: typing.Optional[RequestOptions] = None
83
86
  ) -> SuccessResponse:
84
87
  """
85
88
  Sets the entity types for a project, replacing any existing ones.
86
89
 
87
90
  Parameters
88
91
  ----------
89
- entity_types : typing.Sequence[EntityType]
92
+ entity_types : typing.Optional[typing.Sequence[EntityType]]
90
93
 
91
94
  request_options : typing.Optional[RequestOptions]
92
95
  Request-specific configuration.
@@ -98,20 +101,12 @@ class GraphClient:
98
101
 
99
102
  Examples
100
103
  --------
101
- from zep_cloud import EntityType
102
104
  from zep_cloud.client import Zep
103
105
 
104
106
  client = Zep(
105
107
  api_key="YOUR_API_KEY",
106
108
  )
107
- client.graph.set_entity_types_internal(
108
- entity_types=[
109
- EntityType(
110
- description="description",
111
- name="name",
112
- )
113
- ],
114
- )
109
+ client.graph.set_entity_types_internal()
115
110
  """
116
111
  _response = self._client_wrapper.httpx_client.request(
117
112
  "entity-types",
@@ -139,9 +134,10 @@ class GraphClient:
139
134
  def add(
140
135
  self,
141
136
  *,
142
- data: typing.Optional[str] = OMIT,
137
+ data: str,
138
+ type: GraphDataType,
143
139
  group_id: typing.Optional[str] = OMIT,
144
- type: typing.Optional[GraphDataType] = OMIT,
140
+ source_description: typing.Optional[str] = OMIT,
145
141
  user_id: typing.Optional[str] = OMIT,
146
142
  request_options: typing.Optional[RequestOptions] = None
147
143
  ) -> Episode:
@@ -150,11 +146,13 @@ class GraphClient:
150
146
 
151
147
  Parameters
152
148
  ----------
153
- data : typing.Optional[str]
149
+ data : str
150
+
151
+ type : GraphDataType
154
152
 
155
153
  group_id : typing.Optional[str]
156
154
 
157
- type : typing.Optional[GraphDataType]
155
+ source_description : typing.Optional[str]
158
156
 
159
157
  user_id : typing.Optional[str]
160
158
 
@@ -173,12 +171,21 @@ class GraphClient:
173
171
  client = Zep(
174
172
  api_key="YOUR_API_KEY",
175
173
  )
176
- client.graph.add()
174
+ client.graph.add(
175
+ data="data",
176
+ type="text",
177
+ )
177
178
  """
178
179
  _response = self._client_wrapper.httpx_client.request(
179
180
  "graph",
180
181
  method="POST",
181
- json={"data": data, "group_id": group_id, "type": type, "user_id": user_id},
182
+ json={
183
+ "data": data,
184
+ "group_id": group_id,
185
+ "source_description": source_description,
186
+ "type": type,
187
+ "user_id": user_id,
188
+ },
182
189
  request_options=request_options,
183
190
  omit=OMIT,
184
191
  )
@@ -493,14 +500,17 @@ class AsyncGraphClient:
493
500
  raise core_api_error_ApiError(status_code=_response.status_code, body=_response_json)
494
501
 
495
502
  async def set_entity_types_internal(
496
- self, *, entity_types: typing.Sequence[EntityType], request_options: typing.Optional[RequestOptions] = None
503
+ self,
504
+ *,
505
+ entity_types: typing.Optional[typing.Sequence[EntityType]] = OMIT,
506
+ request_options: typing.Optional[RequestOptions] = None
497
507
  ) -> SuccessResponse:
498
508
  """
499
509
  Sets the entity types for a project, replacing any existing ones.
500
510
 
501
511
  Parameters
502
512
  ----------
503
- entity_types : typing.Sequence[EntityType]
513
+ entity_types : typing.Optional[typing.Sequence[EntityType]]
504
514
 
505
515
  request_options : typing.Optional[RequestOptions]
506
516
  Request-specific configuration.
@@ -514,7 +524,6 @@ class AsyncGraphClient:
514
524
  --------
515
525
  import asyncio
516
526
 
517
- from zep_cloud import EntityType
518
527
  from zep_cloud.client import AsyncZep
519
528
 
520
529
  client = AsyncZep(
@@ -523,14 +532,7 @@ class AsyncGraphClient:
523
532
 
524
533
 
525
534
  async def main() -> None:
526
- await client.graph.set_entity_types_internal(
527
- entity_types=[
528
- EntityType(
529
- description="description",
530
- name="name",
531
- )
532
- ],
533
- )
535
+ await client.graph.set_entity_types_internal()
534
536
 
535
537
 
536
538
  asyncio.run(main())
@@ -561,9 +563,10 @@ class AsyncGraphClient:
561
563
  async def add(
562
564
  self,
563
565
  *,
564
- data: typing.Optional[str] = OMIT,
566
+ data: str,
567
+ type: GraphDataType,
565
568
  group_id: typing.Optional[str] = OMIT,
566
- type: typing.Optional[GraphDataType] = OMIT,
569
+ source_description: typing.Optional[str] = OMIT,
567
570
  user_id: typing.Optional[str] = OMIT,
568
571
  request_options: typing.Optional[RequestOptions] = None
569
572
  ) -> Episode:
@@ -572,11 +575,13 @@ class AsyncGraphClient:
572
575
 
573
576
  Parameters
574
577
  ----------
575
- data : typing.Optional[str]
578
+ data : str
579
+
580
+ type : GraphDataType
576
581
 
577
582
  group_id : typing.Optional[str]
578
583
 
579
- type : typing.Optional[GraphDataType]
584
+ source_description : typing.Optional[str]
580
585
 
581
586
  user_id : typing.Optional[str]
582
587
 
@@ -600,7 +605,10 @@ class AsyncGraphClient:
600
605
 
601
606
 
602
607
  async def main() -> None:
603
- await client.graph.add()
608
+ await client.graph.add(
609
+ data="data",
610
+ type="text",
611
+ )
604
612
 
605
613
 
606
614
  asyncio.run(main())
@@ -608,7 +616,13 @@ class AsyncGraphClient:
608
616
  _response = await self._client_wrapper.httpx_client.request(
609
617
  "graph",
610
618
  method="POST",
611
- json={"data": data, "group_id": group_id, "type": type, "user_id": user_id},
619
+ json={
620
+ "data": data,
621
+ "group_id": group_id,
622
+ "source_description": source_description,
623
+ "type": type,
624
+ "user_id": user_id,
625
+ },
612
626
  request_options=request_options,
613
627
  omit=OMIT,
614
628
  )
@@ -18,6 +18,11 @@ class EntityNode(pydantic_v1.BaseModel):
18
18
  Creation time of the node
19
19
  """
20
20
 
21
+ episodes: typing.Optional[typing.List[str]] = pydantic_v1.Field(default=None)
22
+ """
23
+ List of episode uuids that mention this node
24
+ """
25
+
21
26
  labels: typing.Optional[typing.List[str]] = pydantic_v1.Field(default=None)
22
27
  """
23
28
  Labels associated with the node
@@ -11,7 +11,6 @@ from .graph_data_type import GraphDataType
11
11
  class Episode(pydantic_v1.BaseModel):
12
12
  content: str
13
13
  created_at: str
14
- name: typing.Optional[str] = None
15
14
  processed: typing.Optional[bool] = None
16
15
  source: typing.Optional[GraphDataType] = None
17
16
  source_description: typing.Optional[str] = None
File without changes
File without changes