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.
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/PKG-INFO +1 -1
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/pyproject.toml +1 -1
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/core/client_wrapper.py +1 -1
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/graph/episode/client.py +107 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/LICENSE +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/README.md +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/__init__.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/base_client.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/client.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/core/__init__.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/core/api_error.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/core/datetime_utils.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/core/file.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/core/http_client.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/core/jsonable_encoder.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/core/pydantic_utilities.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/core/query_encoder.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/core/remove_none_from_dict.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/core/request_options.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/document/__init__.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/document/client.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/environment.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/errors/__init__.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/errors/bad_request_error.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/errors/conflict_error.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/errors/internal_server_error.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/errors/not_found_error.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/errors/unauthorized_error.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/external_clients/document.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/external_clients/memory.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/external_clients/user.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/extractor/__init__.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/extractor/models.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/graph/__init__.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/graph/client.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/graph/edge/__init__.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/graph/edge/client.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/graph/episode/__init__.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/graph/node/__init__.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/graph/node/client.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/group/__init__.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/group/client.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/memory/__init__.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/memory/client.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/py.typed +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/__init__.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/add_memory_response.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/add_triple_response.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/api_error.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/apidata_document.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/apidata_document_collection.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/apidata_document_search_response.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/apidata_document_with_score.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/classify_session_request.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/create_document_request.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/end_session_response.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/end_sessions_response.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/entity_edge.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/entity_node.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/episode.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/episode_response.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/fact.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/fact_rating_examples.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/fact_rating_instruction.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/fact_response.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/facts_response.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/graph_data_type.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/graph_search_results.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/graph_search_scope.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/group.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/group_list_response.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/memory.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/memory_search_result.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/message.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/message_list_response.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/new_fact.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/question.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/reranker.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/role_type.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/search_filters.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/search_scope.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/search_type.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/session.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/session_classification.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/session_list_response.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/session_search_response.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/session_search_result.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/success_response.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/summary.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/summary_list_response.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/update_document_list_request.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/user.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/user_list_response.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/types/user_node_response.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/user/__init__.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/user/client.py +0 -0
- {zep_cloud-2.6.1 → zep_cloud-2.7.0}/src/zep_cloud/version.py +0 -0
|
@@ -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.
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|