zep-cloud 2.6.1__tar.gz → 2.7.0__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 (97) hide show
  1. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/PKG-INFO +1 -1
  2. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/pyproject.toml +1 -1
  3. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/core/client_wrapper.py +1 -1
  4. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/graph/episode/client.py +107 -0
  5. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/LICENSE +0 -0
  6. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/README.md +0 -0
  7. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/__init__.py +0 -0
  8. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/base_client.py +0 -0
  9. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/client.py +0 -0
  10. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/core/__init__.py +0 -0
  11. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/core/api_error.py +0 -0
  12. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/core/datetime_utils.py +0 -0
  13. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/core/file.py +0 -0
  14. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/core/http_client.py +0 -0
  15. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/core/jsonable_encoder.py +0 -0
  16. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/core/pydantic_utilities.py +0 -0
  17. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/core/query_encoder.py +0 -0
  18. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/core/remove_none_from_dict.py +0 -0
  19. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/core/request_options.py +0 -0
  20. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/document/__init__.py +0 -0
  21. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/document/client.py +0 -0
  22. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/environment.py +0 -0
  23. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/errors/__init__.py +0 -0
  24. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/errors/bad_request_error.py +0 -0
  25. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/errors/conflict_error.py +0 -0
  26. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/errors/internal_server_error.py +0 -0
  27. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/errors/not_found_error.py +0 -0
  28. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/errors/unauthorized_error.py +0 -0
  29. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/external_clients/document.py +0 -0
  30. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/external_clients/memory.py +0 -0
  31. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/external_clients/user.py +0 -0
  32. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/extractor/__init__.py +0 -0
  33. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/extractor/models.py +0 -0
  34. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/graph/__init__.py +0 -0
  35. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/graph/client.py +0 -0
  36. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/graph/edge/__init__.py +0 -0
  37. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/graph/edge/client.py +0 -0
  38. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/graph/episode/__init__.py +0 -0
  39. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/graph/node/__init__.py +0 -0
  40. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/graph/node/client.py +0 -0
  41. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/group/__init__.py +0 -0
  42. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/group/client.py +0 -0
  43. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/memory/__init__.py +0 -0
  44. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/memory/client.py +0 -0
  45. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/py.typed +0 -0
  46. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/__init__.py +0 -0
  47. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/add_memory_response.py +0 -0
  48. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/add_triple_response.py +0 -0
  49. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/api_error.py +0 -0
  50. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/apidata_document.py +0 -0
  51. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/apidata_document_collection.py +0 -0
  52. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/apidata_document_search_response.py +0 -0
  53. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/apidata_document_with_score.py +0 -0
  54. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/classify_session_request.py +0 -0
  55. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/create_document_request.py +0 -0
  56. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/end_session_response.py +0 -0
  57. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/end_sessions_response.py +0 -0
  58. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/entity_edge.py +0 -0
  59. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/entity_node.py +0 -0
  60. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/episode.py +0 -0
  61. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/episode_response.py +0 -0
  62. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/fact.py +0 -0
  63. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/fact_rating_examples.py +0 -0
  64. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/fact_rating_instruction.py +0 -0
  65. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/fact_response.py +0 -0
  66. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/facts_response.py +0 -0
  67. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/graph_data_type.py +0 -0
  68. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/graph_search_results.py +0 -0
  69. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/graph_search_scope.py +0 -0
  70. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/group.py +0 -0
  71. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/group_list_response.py +0 -0
  72. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/memory.py +0 -0
  73. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/memory_search_result.py +0 -0
  74. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/message.py +0 -0
  75. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/message_list_response.py +0 -0
  76. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/new_fact.py +0 -0
  77. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/question.py +0 -0
  78. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/reranker.py +0 -0
  79. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/role_type.py +0 -0
  80. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/search_filters.py +0 -0
  81. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/search_scope.py +0 -0
  82. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/search_type.py +0 -0
  83. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/session.py +0 -0
  84. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/session_classification.py +0 -0
  85. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/session_list_response.py +0 -0
  86. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/session_search_response.py +0 -0
  87. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/session_search_result.py +0 -0
  88. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/success_response.py +0 -0
  89. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/summary.py +0 -0
  90. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/summary_list_response.py +0 -0
  91. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/update_document_list_request.py +0 -0
  92. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/user.py +0 -0
  93. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/user_list_response.py +0 -0
  94. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/user_node_response.py +0 -0
  95. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/user/__init__.py +0 -0
  96. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/user/client.py +0 -0
  97. {zep_cloud-2.6.1 → zep_cloud-2.7.0}/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.6.1
3
+ Version: 2.7.0
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.6.1"
3
+ version = "2.7.0"
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.6.1",
20
+ "X-Fern-SDK-Version": "2.7.0",
21
21
  }
22
22
  headers["Authorization"] = f"Api-Key {self.api_key}"
23
23
  return headers
@@ -14,6 +14,7 @@ from ...errors.not_found_error import NotFoundError
14
14
  from ...types.api_error import ApiError as types_api_error_ApiError
15
15
  from ...types.episode import Episode
16
16
  from ...types.episode_response import EpisodeResponse
17
+ from ...types.graph_search_results import GraphSearchResults
17
18
  from ...types.success_response import SuccessResponse
18
19
 
19
20
 
@@ -237,6 +238,55 @@ class EpisodeClient:
237
238
  raise core_api_error_ApiError(status_code=_response.status_code, body=_response.text)
238
239
  raise core_api_error_ApiError(status_code=_response.status_code, body=_response_json)
239
240
 
241
+ def get_nodes_and_edges(
242
+ self, uuid_: str, *, request_options: typing.Optional[RequestOptions] = None
243
+ ) -> GraphSearchResults:
244
+ """
245
+ Returns nodes and edges mentioned in an episode
246
+
247
+ Parameters
248
+ ----------
249
+ uuid_ : str
250
+ Episode uuid
251
+
252
+ request_options : typing.Optional[RequestOptions]
253
+ Request-specific configuration.
254
+
255
+ Returns
256
+ -------
257
+ GraphSearchResults
258
+ Graph search results
259
+
260
+ Examples
261
+ --------
262
+ from zep_cloud.client import Zep
263
+
264
+ client = Zep(
265
+ api_key="YOUR_API_KEY",
266
+ )
267
+ client.graph.episode.get_nodes_and_edges(
268
+ uuid_="uuid",
269
+ )
270
+ """
271
+ _response = self._client_wrapper.httpx_client.request(
272
+ f"graph/episodes/{jsonable_encoder(uuid_)}/mentions", method="GET", request_options=request_options
273
+ )
274
+ try:
275
+ if 200 <= _response.status_code < 300:
276
+ return pydantic_v1.parse_obj_as(GraphSearchResults, _response.json()) # type: ignore
277
+ if _response.status_code == 400:
278
+ raise BadRequestError(
279
+ pydantic_v1.parse_obj_as(types_api_error_ApiError, _response.json()) # type: ignore
280
+ )
281
+ if _response.status_code == 500:
282
+ raise InternalServerError(
283
+ pydantic_v1.parse_obj_as(types_api_error_ApiError, _response.json()) # type: ignore
284
+ )
285
+ _response_json = _response.json()
286
+ except JSONDecodeError:
287
+ raise core_api_error_ApiError(status_code=_response.status_code, body=_response.text)
288
+ raise core_api_error_ApiError(status_code=_response.status_code, body=_response_json)
289
+
240
290
 
241
291
  class AsyncEpisodeClient:
242
292
  def __init__(self, *, client_wrapper: AsyncClientWrapper):
@@ -489,3 +539,60 @@ class AsyncEpisodeClient:
489
539
  except JSONDecodeError:
490
540
  raise core_api_error_ApiError(status_code=_response.status_code, body=_response.text)
491
541
  raise core_api_error_ApiError(status_code=_response.status_code, body=_response_json)
542
+
543
+ async def get_nodes_and_edges(
544
+ self, uuid_: str, *, request_options: typing.Optional[RequestOptions] = None
545
+ ) -> GraphSearchResults:
546
+ """
547
+ Returns nodes and edges mentioned in an episode
548
+
549
+ Parameters
550
+ ----------
551
+ uuid_ : str
552
+ Episode uuid
553
+
554
+ request_options : typing.Optional[RequestOptions]
555
+ Request-specific configuration.
556
+
557
+ Returns
558
+ -------
559
+ GraphSearchResults
560
+ Graph search results
561
+
562
+ Examples
563
+ --------
564
+ import asyncio
565
+
566
+ from zep_cloud.client import AsyncZep
567
+
568
+ client = AsyncZep(
569
+ api_key="YOUR_API_KEY",
570
+ )
571
+
572
+
573
+ async def main() -> None:
574
+ await client.graph.episode.get_nodes_and_edges(
575
+ uuid_="uuid",
576
+ )
577
+
578
+
579
+ asyncio.run(main())
580
+ """
581
+ _response = await self._client_wrapper.httpx_client.request(
582
+ f"graph/episodes/{jsonable_encoder(uuid_)}/mentions", method="GET", request_options=request_options
583
+ )
584
+ try:
585
+ if 200 <= _response.status_code < 300:
586
+ return pydantic_v1.parse_obj_as(GraphSearchResults, _response.json()) # type: ignore
587
+ if _response.status_code == 400:
588
+ raise BadRequestError(
589
+ pydantic_v1.parse_obj_as(types_api_error_ApiError, _response.json()) # type: ignore
590
+ )
591
+ if _response.status_code == 500:
592
+ raise InternalServerError(
593
+ pydantic_v1.parse_obj_as(types_api_error_ApiError, _response.json()) # type: ignore
594
+ )
595
+ _response_json = _response.json()
596
+ except JSONDecodeError:
597
+ raise core_api_error_ApiError(status_code=_response.status_code, body=_response.text)
598
+ raise core_api_error_ApiError(status_code=_response.status_code, body=_response_json)
File without changes
File without changes