zep-cloud 2.7.0__tar.gz → 2.9.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.7.0 → zep_cloud-2.9.0}/PKG-INFO +1 -1
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/pyproject.toml +1 -1
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/__init__.py +8 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/client.py +4 -3
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/core/client_wrapper.py +1 -1
- zep_cloud-2.9.0/src/zep_cloud/external_clients/graph.py +38 -0
- zep_cloud-2.9.0/src/zep_cloud/external_clients/ontology.py +109 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/graph/client.py +230 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/__init__.py +8 -0
- zep_cloud-2.9.0/src/zep_cloud/types/entity_property.py +32 -0
- zep_cloud-2.9.0/src/zep_cloud/types/entity_property_type.py +5 -0
- zep_cloud-2.9.0/src/zep_cloud/types/entity_type.py +32 -0
- zep_cloud-2.9.0/src/zep_cloud/types/entity_type_response.py +30 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/episode.py +1 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/message.py +5 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/LICENSE +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/README.md +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/base_client.py +2 -2
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/core/__init__.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/core/api_error.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/core/datetime_utils.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/core/file.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/core/http_client.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/core/jsonable_encoder.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/core/pydantic_utilities.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/core/query_encoder.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/core/remove_none_from_dict.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/core/request_options.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/document/__init__.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/document/client.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/environment.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/errors/__init__.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/errors/bad_request_error.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/errors/conflict_error.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/errors/internal_server_error.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/errors/not_found_error.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/errors/unauthorized_error.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/external_clients/document.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/external_clients/memory.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/external_clients/user.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/extractor/__init__.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/extractor/models.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/graph/__init__.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/graph/edge/__init__.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/graph/edge/client.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/graph/episode/__init__.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/graph/episode/client.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/graph/node/__init__.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/graph/node/client.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/group/__init__.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/group/client.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/memory/__init__.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/memory/client.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/py.typed +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/add_memory_response.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/add_triple_response.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/api_error.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/apidata_document.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/apidata_document_collection.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/apidata_document_search_response.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/apidata_document_with_score.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/classify_session_request.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/create_document_request.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/end_session_response.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/end_sessions_response.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/entity_edge.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/entity_node.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/episode_response.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/fact.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/fact_rating_examples.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/fact_rating_instruction.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/fact_response.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/facts_response.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/graph_data_type.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/graph_search_results.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/graph_search_scope.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/group.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/group_list_response.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/memory.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/memory_search_result.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/message_list_response.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/new_fact.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/question.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/reranker.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/role_type.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/search_filters.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/search_scope.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/search_type.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/session.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/session_classification.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/session_list_response.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/session_search_response.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/session_search_result.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/success_response.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/summary.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/summary_list_response.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/update_document_list_request.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/user.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/user_list_response.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/types/user_node_response.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/user/__init__.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/user/client.py +0 -0
- {zep_cloud-2.7.0 → zep_cloud-2.9.0}/src/zep_cloud/version.py +0 -0
|
@@ -14,6 +14,10 @@ from .types import (
|
|
|
14
14
|
EndSessionsResponse,
|
|
15
15
|
EntityEdge,
|
|
16
16
|
EntityNode,
|
|
17
|
+
EntityProperty,
|
|
18
|
+
EntityPropertyType,
|
|
19
|
+
EntityType,
|
|
20
|
+
EntityTypeResponse,
|
|
17
21
|
Episode,
|
|
18
22
|
EpisodeResponse,
|
|
19
23
|
Fact,
|
|
@@ -71,6 +75,10 @@ __all__ = [
|
|
|
71
75
|
"EndSessionsResponse",
|
|
72
76
|
"EntityEdge",
|
|
73
77
|
"EntityNode",
|
|
78
|
+
"EntityProperty",
|
|
79
|
+
"EntityPropertyType",
|
|
80
|
+
"EntityType",
|
|
81
|
+
"EntityTypeResponse",
|
|
74
82
|
"Episode",
|
|
75
83
|
"EpisodeResponse",
|
|
76
84
|
"Fact",
|
|
@@ -7,7 +7,7 @@ from .environment import ZepEnvironment
|
|
|
7
7
|
from .external_clients.memory import MemoryClient, AsyncMemoryClient
|
|
8
8
|
from .external_clients.document import DocumentClient, AsyncDocumentClient
|
|
9
9
|
from .external_clients.user import UserClient, AsyncUserClient
|
|
10
|
-
|
|
10
|
+
from .external_clients.graph import GraphClient, AsyncGraphClient
|
|
11
11
|
|
|
12
12
|
class Zep(BaseClient):
|
|
13
13
|
def __init__(
|
|
@@ -34,7 +34,7 @@ class Zep(BaseClient):
|
|
|
34
34
|
self.memory = MemoryClient(client_wrapper=self._client_wrapper)
|
|
35
35
|
self.document = DocumentClient(client_wrapper=self._client_wrapper)
|
|
36
36
|
self.user = UserClient(client_wrapper=self._client_wrapper)
|
|
37
|
-
|
|
37
|
+
self.graph = GraphClient(client_wrapper=self._client_wrapper)
|
|
38
38
|
|
|
39
39
|
class AsyncZep(AsyncBaseClient):
|
|
40
40
|
def __init__(
|
|
@@ -60,4 +60,5 @@ class AsyncZep(AsyncBaseClient):
|
|
|
60
60
|
)
|
|
61
61
|
self.memory = AsyncMemoryClient(client_wrapper=self._client_wrapper)
|
|
62
62
|
self.document = AsyncDocumentClient(client_wrapper=self._client_wrapper)
|
|
63
|
-
self.user = AsyncUserClient(client_wrapper=self._client_wrapper)
|
|
63
|
+
self.user = AsyncUserClient(client_wrapper=self._client_wrapper)
|
|
64
|
+
self.graph = AsyncGraphClient(client_wrapper=self._client_wrapper)
|
|
@@ -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.9.0",
|
|
21
21
|
}
|
|
22
22
|
headers["Authorization"] = f"Api-Key {self.api_key}"
|
|
23
23
|
return headers
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
from zep_cloud.core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
|
2
|
+
from zep_cloud.graph.client import GraphClient as BaseGraphClient, AsyncGraphClient as AsyncBaseGraphClient
|
|
3
|
+
from zep_cloud.types import EntityType
|
|
4
|
+
import typing
|
|
5
|
+
from zep_cloud.external_clients.ontology import entity_model_to_api_schema
|
|
6
|
+
if typing.TYPE_CHECKING:
|
|
7
|
+
from zep_cloud.external_clients.ontology import EntityModel
|
|
8
|
+
from zep_cloud.core.request_options import RequestOptions
|
|
9
|
+
|
|
10
|
+
class GraphClient(BaseGraphClient):
|
|
11
|
+
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
|
12
|
+
super().__init__(
|
|
13
|
+
client_wrapper=client_wrapper
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
def set_entity_types(self, entities: dict[str, "EntityModel"], request_options: typing.Optional[RequestOptions] = None):
|
|
17
|
+
api_entity_types: list[EntityType] = []
|
|
18
|
+
for name, entity in entities.items():
|
|
19
|
+
entity_dict = entity_model_to_api_schema(entity, name)
|
|
20
|
+
api_entity_types.append(EntityType(**entity_dict))
|
|
21
|
+
res = self.set_entity_types_internal(entity_types=api_entity_types, request_options=request_options)
|
|
22
|
+
return res
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class AsyncGraphClient(AsyncBaseGraphClient):
|
|
26
|
+
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
|
27
|
+
super().__init__(
|
|
28
|
+
client_wrapper=client_wrapper
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
async def set_entity_types(self, entities: dict[str, "EntityModel"], request_options: typing.Optional[RequestOptions] = None):
|
|
32
|
+
api_entity_types: list[EntityType] = []
|
|
33
|
+
for name, entity in entities.items():
|
|
34
|
+
entity_dict = entity_model_to_api_schema(entity, name)
|
|
35
|
+
api_entity_types.append(EntityType(**entity_dict))
|
|
36
|
+
res = await self.set_entity_types_internal(entity_types=api_entity_types, request_options=request_options)
|
|
37
|
+
return res
|
|
38
|
+
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
from enum import Enum
|
|
2
|
+
import typing
|
|
3
|
+
from pydantic import BaseModel, Field, WithJsonSchema
|
|
4
|
+
from typing_extensions import Annotated
|
|
5
|
+
from pydantic.json_schema import GenerateJsonSchema, JsonSchemaValue
|
|
6
|
+
from pydantic_core import core_schema
|
|
7
|
+
|
|
8
|
+
class EntityPropertyType(Enum):
|
|
9
|
+
Text = "Text"
|
|
10
|
+
Int = "Int"
|
|
11
|
+
Float = "Float"
|
|
12
|
+
Boolean = "Boolean"
|
|
13
|
+
|
|
14
|
+
class EntityField(BaseModel):
|
|
15
|
+
description: str
|
|
16
|
+
|
|
17
|
+
class EntityBaseText(EntityField):
|
|
18
|
+
type: EntityPropertyType = EntityPropertyType.Text
|
|
19
|
+
|
|
20
|
+
class EntityBaseInt(EntityField):
|
|
21
|
+
type: EntityPropertyType = EntityPropertyType.Int
|
|
22
|
+
|
|
23
|
+
class EntityBaseFloat(EntityField):
|
|
24
|
+
type: EntityPropertyType = EntityPropertyType.Float
|
|
25
|
+
|
|
26
|
+
class EntityBaseBoolean(EntityField):
|
|
27
|
+
type: EntityPropertyType = EntityPropertyType.Boolean
|
|
28
|
+
|
|
29
|
+
EntityText = Annotated[
|
|
30
|
+
typing.Optional[str],
|
|
31
|
+
Field(default=None),
|
|
32
|
+
Field(..., entity_type=EntityPropertyType.Text),
|
|
33
|
+
WithJsonSchema(EntityBaseText.model_json_schema(), mode="serialization"),
|
|
34
|
+
]
|
|
35
|
+
|
|
36
|
+
EntityInt = Annotated[
|
|
37
|
+
typing.Optional[int],
|
|
38
|
+
Field(default=None),
|
|
39
|
+
Field(..., entity_type=EntityPropertyType.Int),
|
|
40
|
+
WithJsonSchema(EntityBaseInt.model_json_schema(), mode="serialization"),
|
|
41
|
+
]
|
|
42
|
+
|
|
43
|
+
EntityFloat = Annotated[
|
|
44
|
+
typing.Optional[float],
|
|
45
|
+
Field(default=None),
|
|
46
|
+
Field(..., entity_type=EntityPropertyType.Float),
|
|
47
|
+
WithJsonSchema(EntityBaseFloat.model_json_schema(), mode="serialization"),
|
|
48
|
+
]
|
|
49
|
+
|
|
50
|
+
EntityBoolean = Annotated[
|
|
51
|
+
typing.Optional[bool],
|
|
52
|
+
Field(default=None),
|
|
53
|
+
Field(..., entity_type=EntityPropertyType.Boolean),
|
|
54
|
+
WithJsonSchema(EntityBaseBoolean.model_json_schema(), mode="serialization"),
|
|
55
|
+
]
|
|
56
|
+
|
|
57
|
+
class _CustomJsonSchema(GenerateJsonSchema):
|
|
58
|
+
"""
|
|
59
|
+
_CustomJsonSchema is a helper class that flattens and removes nullable as these aren't relevant to the entity schema
|
|
60
|
+
and this simplifies server-side deserialization
|
|
61
|
+
"""
|
|
62
|
+
def nullable_schema(self, schema: core_schema.CoreSchema) -> JsonSchemaValue:
|
|
63
|
+
return self.generate_inner(schema["schema"])
|
|
64
|
+
|
|
65
|
+
class EntityModel(BaseModel):
|
|
66
|
+
@classmethod
|
|
67
|
+
def model_json_schema(cls, *args, **kwargs):
|
|
68
|
+
kwargs["schema_generator"] = _CustomJsonSchema
|
|
69
|
+
return super().model_json_schema(*args, **kwargs)
|
|
70
|
+
|
|
71
|
+
def entity_model_to_api_schema(model_class: "EntityModel", name: str) -> dict[str, typing.Any]:
|
|
72
|
+
"""Convert a Pydantic EntityModel to a JSON schema for Go EntityType"""
|
|
73
|
+
|
|
74
|
+
schema = model_class.model_json_schema()
|
|
75
|
+
|
|
76
|
+
# Define the entity type with proper typings for properties as a list of dictionaries
|
|
77
|
+
entity_type: dict[str, typing.Any] = {
|
|
78
|
+
"name": name,
|
|
79
|
+
"description": model_class.__doc__.strip() if model_class.__doc__ else "",
|
|
80
|
+
"properties": []
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
for field_name, field_schema in schema.get("properties", {}).items():
|
|
84
|
+
if "type" not in field_schema:
|
|
85
|
+
continue
|
|
86
|
+
|
|
87
|
+
property_type = field_schema.get("type")
|
|
88
|
+
type_mapping = {
|
|
89
|
+
"string": "Text",
|
|
90
|
+
"integer": "Int",
|
|
91
|
+
"number": "Float",
|
|
92
|
+
"boolean": "Boolean"
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
if property_type in type_mapping:
|
|
96
|
+
property_type = type_mapping[property_type]
|
|
97
|
+
else:
|
|
98
|
+
raise ValueError(f"Unsupported property type: {property_type}")
|
|
99
|
+
|
|
100
|
+
description = field_schema.get("description", "")
|
|
101
|
+
|
|
102
|
+
entity_type["properties"].append({
|
|
103
|
+
"name": field_name,
|
|
104
|
+
"type": property_type,
|
|
105
|
+
"description": description
|
|
106
|
+
})
|
|
107
|
+
|
|
108
|
+
return entity_type
|
|
109
|
+
|
|
@@ -9,14 +9,18 @@ from ..core.pydantic_utilities import pydantic_v1
|
|
|
9
9
|
from ..core.request_options import RequestOptions
|
|
10
10
|
from ..errors.bad_request_error import BadRequestError
|
|
11
11
|
from ..errors.internal_server_error import InternalServerError
|
|
12
|
+
from ..errors.not_found_error import NotFoundError
|
|
12
13
|
from ..types.add_triple_response import AddTripleResponse
|
|
13
14
|
from ..types.api_error import ApiError as types_api_error_ApiError
|
|
15
|
+
from ..types.entity_type import EntityType
|
|
16
|
+
from ..types.entity_type_response import EntityTypeResponse
|
|
14
17
|
from ..types.episode import Episode
|
|
15
18
|
from ..types.graph_data_type import GraphDataType
|
|
16
19
|
from ..types.graph_search_results import GraphSearchResults
|
|
17
20
|
from ..types.graph_search_scope import GraphSearchScope
|
|
18
21
|
from ..types.reranker import Reranker
|
|
19
22
|
from ..types.search_filters import SearchFilters
|
|
23
|
+
from ..types.success_response import SuccessResponse
|
|
20
24
|
from .edge.client import AsyncEdgeClient, EdgeClient
|
|
21
25
|
from .episode.client import AsyncEpisodeClient, EpisodeClient
|
|
22
26
|
from .node.client import AsyncNodeClient, NodeClient
|
|
@@ -32,6 +36,106 @@ class GraphClient:
|
|
|
32
36
|
self.episode = EpisodeClient(client_wrapper=self._client_wrapper)
|
|
33
37
|
self.node = NodeClient(client_wrapper=self._client_wrapper)
|
|
34
38
|
|
|
39
|
+
def list_entity_types(self, *, request_options: typing.Optional[RequestOptions] = None) -> EntityTypeResponse:
|
|
40
|
+
"""
|
|
41
|
+
Returns all entity types for a project.
|
|
42
|
+
|
|
43
|
+
Parameters
|
|
44
|
+
----------
|
|
45
|
+
request_options : typing.Optional[RequestOptions]
|
|
46
|
+
Request-specific configuration.
|
|
47
|
+
|
|
48
|
+
Returns
|
|
49
|
+
-------
|
|
50
|
+
EntityTypeResponse
|
|
51
|
+
The list of entity types.
|
|
52
|
+
|
|
53
|
+
Examples
|
|
54
|
+
--------
|
|
55
|
+
from zep_cloud.client import Zep
|
|
56
|
+
|
|
57
|
+
client = Zep(
|
|
58
|
+
api_key="YOUR_API_KEY",
|
|
59
|
+
)
|
|
60
|
+
client.graph.list_entity_types()
|
|
61
|
+
"""
|
|
62
|
+
_response = self._client_wrapper.httpx_client.request(
|
|
63
|
+
"entity-types", method="GET", request_options=request_options
|
|
64
|
+
)
|
|
65
|
+
try:
|
|
66
|
+
if 200 <= _response.status_code < 300:
|
|
67
|
+
return pydantic_v1.parse_obj_as(EntityTypeResponse, _response.json()) # type: ignore
|
|
68
|
+
if _response.status_code == 404:
|
|
69
|
+
raise NotFoundError(
|
|
70
|
+
pydantic_v1.parse_obj_as(types_api_error_ApiError, _response.json()) # type: ignore
|
|
71
|
+
)
|
|
72
|
+
if _response.status_code == 500:
|
|
73
|
+
raise InternalServerError(
|
|
74
|
+
pydantic_v1.parse_obj_as(types_api_error_ApiError, _response.json()) # type: ignore
|
|
75
|
+
)
|
|
76
|
+
_response_json = _response.json()
|
|
77
|
+
except JSONDecodeError:
|
|
78
|
+
raise core_api_error_ApiError(status_code=_response.status_code, body=_response.text)
|
|
79
|
+
raise core_api_error_ApiError(status_code=_response.status_code, body=_response_json)
|
|
80
|
+
|
|
81
|
+
def set_entity_types_internal(
|
|
82
|
+
self, *, entity_types: typing.Sequence[EntityType], request_options: typing.Optional[RequestOptions] = None
|
|
83
|
+
) -> SuccessResponse:
|
|
84
|
+
"""
|
|
85
|
+
Sets the entity types for a project, replacing any existing ones.
|
|
86
|
+
|
|
87
|
+
Parameters
|
|
88
|
+
----------
|
|
89
|
+
entity_types : typing.Sequence[EntityType]
|
|
90
|
+
|
|
91
|
+
request_options : typing.Optional[RequestOptions]
|
|
92
|
+
Request-specific configuration.
|
|
93
|
+
|
|
94
|
+
Returns
|
|
95
|
+
-------
|
|
96
|
+
SuccessResponse
|
|
97
|
+
Entity types set successfully
|
|
98
|
+
|
|
99
|
+
Examples
|
|
100
|
+
--------
|
|
101
|
+
from zep_cloud import EntityType
|
|
102
|
+
from zep_cloud.client import Zep
|
|
103
|
+
|
|
104
|
+
client = Zep(
|
|
105
|
+
api_key="YOUR_API_KEY",
|
|
106
|
+
)
|
|
107
|
+
client.graph.set_entity_types_internal(
|
|
108
|
+
entity_types=[
|
|
109
|
+
EntityType(
|
|
110
|
+
description="description",
|
|
111
|
+
name="name",
|
|
112
|
+
)
|
|
113
|
+
],
|
|
114
|
+
)
|
|
115
|
+
"""
|
|
116
|
+
_response = self._client_wrapper.httpx_client.request(
|
|
117
|
+
"entity-types",
|
|
118
|
+
method="PUT",
|
|
119
|
+
json={"entity_types": entity_types},
|
|
120
|
+
request_options=request_options,
|
|
121
|
+
omit=OMIT,
|
|
122
|
+
)
|
|
123
|
+
try:
|
|
124
|
+
if 200 <= _response.status_code < 300:
|
|
125
|
+
return pydantic_v1.parse_obj_as(SuccessResponse, _response.json()) # type: ignore
|
|
126
|
+
if _response.status_code == 400:
|
|
127
|
+
raise BadRequestError(
|
|
128
|
+
pydantic_v1.parse_obj_as(types_api_error_ApiError, _response.json()) # type: ignore
|
|
129
|
+
)
|
|
130
|
+
if _response.status_code == 500:
|
|
131
|
+
raise InternalServerError(
|
|
132
|
+
pydantic_v1.parse_obj_as(types_api_error_ApiError, _response.json()) # type: ignore
|
|
133
|
+
)
|
|
134
|
+
_response_json = _response.json()
|
|
135
|
+
except JSONDecodeError:
|
|
136
|
+
raise core_api_error_ApiError(status_code=_response.status_code, body=_response.text)
|
|
137
|
+
raise core_api_error_ApiError(status_code=_response.status_code, body=_response_json)
|
|
138
|
+
|
|
35
139
|
def add(
|
|
36
140
|
self,
|
|
37
141
|
*,
|
|
@@ -229,6 +333,7 @@ class GraphClient:
|
|
|
229
333
|
center_node_uuid: typing.Optional[str] = OMIT,
|
|
230
334
|
group_id: typing.Optional[str] = OMIT,
|
|
231
335
|
limit: typing.Optional[int] = OMIT,
|
|
336
|
+
min_fact_rating: typing.Optional[float] = OMIT,
|
|
232
337
|
min_score: typing.Optional[float] = OMIT,
|
|
233
338
|
mmr_lambda: typing.Optional[float] = OMIT,
|
|
234
339
|
reranker: typing.Optional[Reranker] = OMIT,
|
|
@@ -254,6 +359,9 @@ class GraphClient:
|
|
|
254
359
|
limit : typing.Optional[int]
|
|
255
360
|
The maximum number of facts to retrieve. Defaults to 10. Limited to 50.
|
|
256
361
|
|
|
362
|
+
min_fact_rating : typing.Optional[float]
|
|
363
|
+
The minimum rating by which to filter relevant facts
|
|
364
|
+
|
|
257
365
|
min_score : typing.Optional[float]
|
|
258
366
|
Deprecated
|
|
259
367
|
|
|
@@ -298,6 +406,7 @@ class GraphClient:
|
|
|
298
406
|
"center_node_uuid": center_node_uuid,
|
|
299
407
|
"group_id": group_id,
|
|
300
408
|
"limit": limit,
|
|
409
|
+
"min_fact_rating": min_fact_rating,
|
|
301
410
|
"min_score": min_score,
|
|
302
411
|
"mmr_lambda": mmr_lambda,
|
|
303
412
|
"query": query,
|
|
@@ -333,6 +442,122 @@ class AsyncGraphClient:
|
|
|
333
442
|
self.episode = AsyncEpisodeClient(client_wrapper=self._client_wrapper)
|
|
334
443
|
self.node = AsyncNodeClient(client_wrapper=self._client_wrapper)
|
|
335
444
|
|
|
445
|
+
async def list_entity_types(self, *, request_options: typing.Optional[RequestOptions] = None) -> EntityTypeResponse:
|
|
446
|
+
"""
|
|
447
|
+
Returns all entity types for a project.
|
|
448
|
+
|
|
449
|
+
Parameters
|
|
450
|
+
----------
|
|
451
|
+
request_options : typing.Optional[RequestOptions]
|
|
452
|
+
Request-specific configuration.
|
|
453
|
+
|
|
454
|
+
Returns
|
|
455
|
+
-------
|
|
456
|
+
EntityTypeResponse
|
|
457
|
+
The list of entity types.
|
|
458
|
+
|
|
459
|
+
Examples
|
|
460
|
+
--------
|
|
461
|
+
import asyncio
|
|
462
|
+
|
|
463
|
+
from zep_cloud.client import AsyncZep
|
|
464
|
+
|
|
465
|
+
client = AsyncZep(
|
|
466
|
+
api_key="YOUR_API_KEY",
|
|
467
|
+
)
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
async def main() -> None:
|
|
471
|
+
await client.graph.list_entity_types()
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
asyncio.run(main())
|
|
475
|
+
"""
|
|
476
|
+
_response = await self._client_wrapper.httpx_client.request(
|
|
477
|
+
"entity-types", method="GET", request_options=request_options
|
|
478
|
+
)
|
|
479
|
+
try:
|
|
480
|
+
if 200 <= _response.status_code < 300:
|
|
481
|
+
return pydantic_v1.parse_obj_as(EntityTypeResponse, _response.json()) # type: ignore
|
|
482
|
+
if _response.status_code == 404:
|
|
483
|
+
raise NotFoundError(
|
|
484
|
+
pydantic_v1.parse_obj_as(types_api_error_ApiError, _response.json()) # type: ignore
|
|
485
|
+
)
|
|
486
|
+
if _response.status_code == 500:
|
|
487
|
+
raise InternalServerError(
|
|
488
|
+
pydantic_v1.parse_obj_as(types_api_error_ApiError, _response.json()) # type: ignore
|
|
489
|
+
)
|
|
490
|
+
_response_json = _response.json()
|
|
491
|
+
except JSONDecodeError:
|
|
492
|
+
raise core_api_error_ApiError(status_code=_response.status_code, body=_response.text)
|
|
493
|
+
raise core_api_error_ApiError(status_code=_response.status_code, body=_response_json)
|
|
494
|
+
|
|
495
|
+
async def set_entity_types_internal(
|
|
496
|
+
self, *, entity_types: typing.Sequence[EntityType], request_options: typing.Optional[RequestOptions] = None
|
|
497
|
+
) -> SuccessResponse:
|
|
498
|
+
"""
|
|
499
|
+
Sets the entity types for a project, replacing any existing ones.
|
|
500
|
+
|
|
501
|
+
Parameters
|
|
502
|
+
----------
|
|
503
|
+
entity_types : typing.Sequence[EntityType]
|
|
504
|
+
|
|
505
|
+
request_options : typing.Optional[RequestOptions]
|
|
506
|
+
Request-specific configuration.
|
|
507
|
+
|
|
508
|
+
Returns
|
|
509
|
+
-------
|
|
510
|
+
SuccessResponse
|
|
511
|
+
Entity types set successfully
|
|
512
|
+
|
|
513
|
+
Examples
|
|
514
|
+
--------
|
|
515
|
+
import asyncio
|
|
516
|
+
|
|
517
|
+
from zep_cloud import EntityType
|
|
518
|
+
from zep_cloud.client import AsyncZep
|
|
519
|
+
|
|
520
|
+
client = AsyncZep(
|
|
521
|
+
api_key="YOUR_API_KEY",
|
|
522
|
+
)
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
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
|
+
)
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
asyncio.run(main())
|
|
537
|
+
"""
|
|
538
|
+
_response = await self._client_wrapper.httpx_client.request(
|
|
539
|
+
"entity-types",
|
|
540
|
+
method="PUT",
|
|
541
|
+
json={"entity_types": entity_types},
|
|
542
|
+
request_options=request_options,
|
|
543
|
+
omit=OMIT,
|
|
544
|
+
)
|
|
545
|
+
try:
|
|
546
|
+
if 200 <= _response.status_code < 300:
|
|
547
|
+
return pydantic_v1.parse_obj_as(SuccessResponse, _response.json()) # type: ignore
|
|
548
|
+
if _response.status_code == 400:
|
|
549
|
+
raise BadRequestError(
|
|
550
|
+
pydantic_v1.parse_obj_as(types_api_error_ApiError, _response.json()) # type: ignore
|
|
551
|
+
)
|
|
552
|
+
if _response.status_code == 500:
|
|
553
|
+
raise InternalServerError(
|
|
554
|
+
pydantic_v1.parse_obj_as(types_api_error_ApiError, _response.json()) # type: ignore
|
|
555
|
+
)
|
|
556
|
+
_response_json = _response.json()
|
|
557
|
+
except JSONDecodeError:
|
|
558
|
+
raise core_api_error_ApiError(status_code=_response.status_code, body=_response.text)
|
|
559
|
+
raise core_api_error_ApiError(status_code=_response.status_code, body=_response_json)
|
|
560
|
+
|
|
336
561
|
async def add(
|
|
337
562
|
self,
|
|
338
563
|
*,
|
|
@@ -546,6 +771,7 @@ class AsyncGraphClient:
|
|
|
546
771
|
center_node_uuid: typing.Optional[str] = OMIT,
|
|
547
772
|
group_id: typing.Optional[str] = OMIT,
|
|
548
773
|
limit: typing.Optional[int] = OMIT,
|
|
774
|
+
min_fact_rating: typing.Optional[float] = OMIT,
|
|
549
775
|
min_score: typing.Optional[float] = OMIT,
|
|
550
776
|
mmr_lambda: typing.Optional[float] = OMIT,
|
|
551
777
|
reranker: typing.Optional[Reranker] = OMIT,
|
|
@@ -571,6 +797,9 @@ class AsyncGraphClient:
|
|
|
571
797
|
limit : typing.Optional[int]
|
|
572
798
|
The maximum number of facts to retrieve. Defaults to 10. Limited to 50.
|
|
573
799
|
|
|
800
|
+
min_fact_rating : typing.Optional[float]
|
|
801
|
+
The minimum rating by which to filter relevant facts
|
|
802
|
+
|
|
574
803
|
min_score : typing.Optional[float]
|
|
575
804
|
Deprecated
|
|
576
805
|
|
|
@@ -623,6 +852,7 @@ class AsyncGraphClient:
|
|
|
623
852
|
"center_node_uuid": center_node_uuid,
|
|
624
853
|
"group_id": group_id,
|
|
625
854
|
"limit": limit,
|
|
855
|
+
"min_fact_rating": min_fact_rating,
|
|
626
856
|
"min_score": min_score,
|
|
627
857
|
"mmr_lambda": mmr_lambda,
|
|
628
858
|
"query": query,
|
|
@@ -13,6 +13,10 @@ from .end_session_response import EndSessionResponse
|
|
|
13
13
|
from .end_sessions_response import EndSessionsResponse
|
|
14
14
|
from .entity_edge import EntityEdge
|
|
15
15
|
from .entity_node import EntityNode
|
|
16
|
+
from .entity_property import EntityProperty
|
|
17
|
+
from .entity_property_type import EntityPropertyType
|
|
18
|
+
from .entity_type import EntityType
|
|
19
|
+
from .entity_type_response import EntityTypeResponse
|
|
16
20
|
from .episode import Episode
|
|
17
21
|
from .episode_response import EpisodeResponse
|
|
18
22
|
from .fact import Fact
|
|
@@ -63,6 +67,10 @@ __all__ = [
|
|
|
63
67
|
"EndSessionsResponse",
|
|
64
68
|
"EntityEdge",
|
|
65
69
|
"EntityNode",
|
|
70
|
+
"EntityProperty",
|
|
71
|
+
"EntityPropertyType",
|
|
72
|
+
"EntityType",
|
|
73
|
+
"EntityTypeResponse",
|
|
66
74
|
"Episode",
|
|
67
75
|
"EpisodeResponse",
|
|
68
76
|
"Fact",
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import datetime as dt
|
|
4
|
+
import typing
|
|
5
|
+
|
|
6
|
+
from ..core.datetime_utils import serialize_datetime
|
|
7
|
+
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
|
|
8
|
+
from .entity_property_type import EntityPropertyType
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class EntityProperty(pydantic_v1.BaseModel):
|
|
12
|
+
description: str
|
|
13
|
+
name: str
|
|
14
|
+
type: EntityPropertyType
|
|
15
|
+
|
|
16
|
+
def json(self, **kwargs: typing.Any) -> str:
|
|
17
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
|
18
|
+
return super().json(**kwargs_with_defaults)
|
|
19
|
+
|
|
20
|
+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
|
21
|
+
kwargs_with_defaults_exclude_unset: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
|
22
|
+
kwargs_with_defaults_exclude_none: typing.Any = {"by_alias": True, "exclude_none": True, **kwargs}
|
|
23
|
+
|
|
24
|
+
return deep_union_pydantic_dicts(
|
|
25
|
+
super().dict(**kwargs_with_defaults_exclude_unset), super().dict(**kwargs_with_defaults_exclude_none)
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
class Config:
|
|
29
|
+
frozen = True
|
|
30
|
+
smart_union = True
|
|
31
|
+
extra = pydantic_v1.Extra.allow
|
|
32
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import datetime as dt
|
|
4
|
+
import typing
|
|
5
|
+
|
|
6
|
+
from ..core.datetime_utils import serialize_datetime
|
|
7
|
+
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
|
|
8
|
+
from .entity_property import EntityProperty
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class EntityType(pydantic_v1.BaseModel):
|
|
12
|
+
description: str
|
|
13
|
+
name: str
|
|
14
|
+
properties: typing.Optional[typing.List[EntityProperty]] = None
|
|
15
|
+
|
|
16
|
+
def json(self, **kwargs: typing.Any) -> str:
|
|
17
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
|
18
|
+
return super().json(**kwargs_with_defaults)
|
|
19
|
+
|
|
20
|
+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
|
21
|
+
kwargs_with_defaults_exclude_unset: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
|
22
|
+
kwargs_with_defaults_exclude_none: typing.Any = {"by_alias": True, "exclude_none": True, **kwargs}
|
|
23
|
+
|
|
24
|
+
return deep_union_pydantic_dicts(
|
|
25
|
+
super().dict(**kwargs_with_defaults_exclude_unset), super().dict(**kwargs_with_defaults_exclude_none)
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
class Config:
|
|
29
|
+
frozen = True
|
|
30
|
+
smart_union = True
|
|
31
|
+
extra = pydantic_v1.Extra.allow
|
|
32
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import datetime as dt
|
|
4
|
+
import typing
|
|
5
|
+
|
|
6
|
+
from ..core.datetime_utils import serialize_datetime
|
|
7
|
+
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
|
|
8
|
+
from .entity_type import EntityType
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class EntityTypeResponse(pydantic_v1.BaseModel):
|
|
12
|
+
entity_types: typing.Optional[typing.List[EntityType]] = None
|
|
13
|
+
|
|
14
|
+
def json(self, **kwargs: typing.Any) -> str:
|
|
15
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
|
16
|
+
return super().json(**kwargs_with_defaults)
|
|
17
|
+
|
|
18
|
+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
|
19
|
+
kwargs_with_defaults_exclude_unset: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
|
20
|
+
kwargs_with_defaults_exclude_none: typing.Any = {"by_alias": True, "exclude_none": True, **kwargs}
|
|
21
|
+
|
|
22
|
+
return deep_union_pydantic_dicts(
|
|
23
|
+
super().dict(**kwargs_with_defaults_exclude_unset), super().dict(**kwargs_with_defaults_exclude_none)
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
class Config:
|
|
27
|
+
frozen = True
|
|
28
|
+
smart_union = True
|
|
29
|
+
extra = pydantic_v1.Extra.allow
|
|
30
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
|
@@ -12,6 +12,7 @@ class Episode(pydantic_v1.BaseModel):
|
|
|
12
12
|
content: str
|
|
13
13
|
created_at: str
|
|
14
14
|
name: typing.Optional[str] = None
|
|
15
|
+
processed: typing.Optional[bool] = None
|
|
15
16
|
source: typing.Optional[GraphDataType] = None
|
|
16
17
|
source_description: typing.Optional[str] = None
|
|
17
18
|
uuid_: str = pydantic_v1.Field(alias="uuid")
|
|
@@ -24,6 +24,11 @@ class Message(pydantic_v1.BaseModel):
|
|
|
24
24
|
The metadata associated with the message.
|
|
25
25
|
"""
|
|
26
26
|
|
|
27
|
+
processed: typing.Optional[bool] = pydantic_v1.Field(default=None)
|
|
28
|
+
"""
|
|
29
|
+
Whether the message has been processed.
|
|
30
|
+
"""
|
|
31
|
+
|
|
27
32
|
role: typing.Optional[str] = pydantic_v1.Field(default=None)
|
|
28
33
|
"""
|
|
29
34
|
Customizable role of the sender of the message (e.g., "john", "sales_agent").
|
|
File without changes
|
|
File without changes
|
|
@@ -76,8 +76,8 @@ class BaseClient:
|
|
|
76
76
|
timeout=_defaulted_timeout,
|
|
77
77
|
)
|
|
78
78
|
self.document = DocumentClient(client_wrapper=self._client_wrapper)
|
|
79
|
-
self.memory = MemoryClient(client_wrapper=self._client_wrapper)
|
|
80
79
|
self.graph = GraphClient(client_wrapper=self._client_wrapper)
|
|
80
|
+
self.memory = MemoryClient(client_wrapper=self._client_wrapper)
|
|
81
81
|
self.group = GroupClient(client_wrapper=self._client_wrapper)
|
|
82
82
|
self.user = UserClient(client_wrapper=self._client_wrapper)
|
|
83
83
|
|
|
@@ -143,8 +143,8 @@ class AsyncBaseClient:
|
|
|
143
143
|
timeout=_defaulted_timeout,
|
|
144
144
|
)
|
|
145
145
|
self.document = AsyncDocumentClient(client_wrapper=self._client_wrapper)
|
|
146
|
-
self.memory = AsyncMemoryClient(client_wrapper=self._client_wrapper)
|
|
147
146
|
self.graph = AsyncGraphClient(client_wrapper=self._client_wrapper)
|
|
147
|
+
self.memory = AsyncMemoryClient(client_wrapper=self._client_wrapper)
|
|
148
148
|
self.group = AsyncGroupClient(client_wrapper=self._client_wrapper)
|
|
149
149
|
self.user = AsyncUserClient(client_wrapper=self._client_wrapper)
|
|
150
150
|
|
|
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
|