zep-cloud 2.0.0__tar.gz → 2.0.1__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.0.0 → zep_cloud-2.0.1}/PKG-INFO +1 -1
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/pyproject.toml +1 -1
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/__init__.py +4 -4
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/core/client_wrapper.py +1 -1
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/group/client.py +21 -2
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/memory/client.py +10 -6
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/__init__.py +4 -4
- zep_cloud-2.0.0/src/zep_cloud/types/session_fact_rating_examples.py → zep_cloud-2.0.1/src/zep_cloud/types/apidata_fact_rating_examples.py +1 -1
- zep_cloud-2.0.0/src/zep_cloud/types/session_fact_rating_instruction.py → zep_cloud-2.0.1/src/zep_cloud/types/apidata_fact_rating_instruction.py +3 -3
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/episode.py +3 -3
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/fact.py +6 -1
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/group.py +5 -1
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/session.py +7 -3
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/user/client.py +33 -2
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/LICENSE +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/README.md +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/base_client.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/client.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/core/__init__.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/core/api_error.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/core/datetime_utils.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/core/file.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/core/http_client.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/core/jsonable_encoder.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/core/pydantic_utilities.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/core/query_encoder.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/core/remove_none_from_dict.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/core/request_options.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/document/__init__.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/document/client.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/environment.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/errors/__init__.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/errors/bad_request_error.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/errors/conflict_error.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/errors/internal_server_error.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/errors/not_found_error.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/errors/unauthorized_error.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/external_clients/document.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/external_clients/memory.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/external_clients/user.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/extractor/__init__.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/extractor/models.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/graph/__init__.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/graph/client.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/graph/edge/__init__.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/graph/edge/client.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/graph/episode/__init__.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/graph/episode/client.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/graph/node/__init__.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/graph/node/client.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/group/__init__.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/memory/__init__.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/py.typed +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/api_error.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/apidata_document.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/apidata_document_collection.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/apidata_document_search_response.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/apidata_document_with_score.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/classify_session_request.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/create_document_request.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/end_session_response.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/end_sessions_response.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/entity_edge.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/entity_node.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/episode_response.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/fact_rating_examples.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/fact_rating_instruction.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/fact_response.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/facts_response.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/graph_data_type.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/graph_search_results.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/graph_search_scope.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/memory.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/memory_search_result.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/message.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/message_list_response.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/new_fact.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/question.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/reranker.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/role_type.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/search_scope.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/search_type.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/session_classification.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/session_list_response.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/session_search_response.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/session_search_result.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/success_response.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/summary.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/summary_list_response.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/update_document_list_request.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/user.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/types/user_list_response.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/user/__init__.py +0 -0
- {zep_cloud-2.0.0 → zep_cloud-2.0.1}/src/zep_cloud/version.py +0 -0
|
@@ -6,6 +6,8 @@ from .types import (
|
|
|
6
6
|
ApidataDocumentCollection,
|
|
7
7
|
ApidataDocumentSearchResponse,
|
|
8
8
|
ApidataDocumentWithScore,
|
|
9
|
+
ApidataFactRatingExamples,
|
|
10
|
+
ApidataFactRatingInstruction,
|
|
9
11
|
ClassifySessionRequest,
|
|
10
12
|
CreateDocumentRequest,
|
|
11
13
|
EndSessionResponse,
|
|
@@ -35,8 +37,6 @@ from .types import (
|
|
|
35
37
|
SearchType,
|
|
36
38
|
Session,
|
|
37
39
|
SessionClassification,
|
|
38
|
-
SessionFactRatingExamples,
|
|
39
|
-
SessionFactRatingInstruction,
|
|
40
40
|
SessionListResponse,
|
|
41
41
|
SessionSearchResponse,
|
|
42
42
|
SessionSearchResult,
|
|
@@ -58,6 +58,8 @@ __all__ = [
|
|
|
58
58
|
"ApidataDocumentCollection",
|
|
59
59
|
"ApidataDocumentSearchResponse",
|
|
60
60
|
"ApidataDocumentWithScore",
|
|
61
|
+
"ApidataFactRatingExamples",
|
|
62
|
+
"ApidataFactRatingInstruction",
|
|
61
63
|
"BadRequestError",
|
|
62
64
|
"ClassifySessionRequest",
|
|
63
65
|
"ConflictError",
|
|
@@ -91,8 +93,6 @@ __all__ = [
|
|
|
91
93
|
"SearchType",
|
|
92
94
|
"Session",
|
|
93
95
|
"SessionClassification",
|
|
94
|
-
"SessionFactRatingExamples",
|
|
95
|
-
"SessionFactRatingInstruction",
|
|
96
96
|
"SessionListResponse",
|
|
97
97
|
"SessionSearchResponse",
|
|
98
98
|
"SessionSearchResult",
|
|
@@ -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.0.
|
|
20
|
+
"X-Fern-SDK-Version": "2.0.1",
|
|
21
21
|
}
|
|
22
22
|
headers["Authorization"] = f"Api-Key {self.api_key}"
|
|
23
23
|
return headers
|
|
@@ -12,6 +12,7 @@ from ..errors.bad_request_error import BadRequestError
|
|
|
12
12
|
from ..errors.internal_server_error import InternalServerError
|
|
13
13
|
from ..errors.not_found_error import NotFoundError
|
|
14
14
|
from ..types.api_error import ApiError as types_api_error_ApiError
|
|
15
|
+
from ..types.apidata_fact_rating_instruction import ApidataFactRatingInstruction
|
|
15
16
|
from ..types.group import Group
|
|
16
17
|
from ..types.success_response import SuccessResponse
|
|
17
18
|
|
|
@@ -27,6 +28,7 @@ class GroupClient:
|
|
|
27
28
|
self,
|
|
28
29
|
*,
|
|
29
30
|
description: typing.Optional[str] = OMIT,
|
|
31
|
+
fact_rating_instruction: typing.Optional[ApidataFactRatingInstruction] = OMIT,
|
|
30
32
|
group_id: typing.Optional[str] = OMIT,
|
|
31
33
|
name: typing.Optional[str] = OMIT,
|
|
32
34
|
request_options: typing.Optional[RequestOptions] = None,
|
|
@@ -38,6 +40,9 @@ class GroupClient:
|
|
|
38
40
|
----------
|
|
39
41
|
description : typing.Optional[str]
|
|
40
42
|
|
|
43
|
+
fact_rating_instruction : typing.Optional[ApidataFactRatingInstruction]
|
|
44
|
+
UserIDs []string `json:"user_ids"`
|
|
45
|
+
|
|
41
46
|
group_id : typing.Optional[str]
|
|
42
47
|
|
|
43
48
|
name : typing.Optional[str]
|
|
@@ -62,7 +67,12 @@ class GroupClient:
|
|
|
62
67
|
_response = self._client_wrapper.httpx_client.request(
|
|
63
68
|
"groups",
|
|
64
69
|
method="POST",
|
|
65
|
-
json={
|
|
70
|
+
json={
|
|
71
|
+
"description": description,
|
|
72
|
+
"fact_rating_instruction": fact_rating_instruction,
|
|
73
|
+
"group_id": group_id,
|
|
74
|
+
"name": name,
|
|
75
|
+
},
|
|
66
76
|
request_options=request_options,
|
|
67
77
|
omit=OMIT,
|
|
68
78
|
)
|
|
@@ -136,6 +146,7 @@ class AsyncGroupClient:
|
|
|
136
146
|
self,
|
|
137
147
|
*,
|
|
138
148
|
description: typing.Optional[str] = OMIT,
|
|
149
|
+
fact_rating_instruction: typing.Optional[ApidataFactRatingInstruction] = OMIT,
|
|
139
150
|
group_id: typing.Optional[str] = OMIT,
|
|
140
151
|
name: typing.Optional[str] = OMIT,
|
|
141
152
|
request_options: typing.Optional[RequestOptions] = None,
|
|
@@ -147,6 +158,9 @@ class AsyncGroupClient:
|
|
|
147
158
|
----------
|
|
148
159
|
description : typing.Optional[str]
|
|
149
160
|
|
|
161
|
+
fact_rating_instruction : typing.Optional[ApidataFactRatingInstruction]
|
|
162
|
+
UserIDs []string `json:"user_ids"`
|
|
163
|
+
|
|
150
164
|
group_id : typing.Optional[str]
|
|
151
165
|
|
|
152
166
|
name : typing.Optional[str]
|
|
@@ -171,7 +185,12 @@ class AsyncGroupClient:
|
|
|
171
185
|
_response = await self._client_wrapper.httpx_client.request(
|
|
172
186
|
"groups",
|
|
173
187
|
method="POST",
|
|
174
|
-
json={
|
|
188
|
+
json={
|
|
189
|
+
"description": description,
|
|
190
|
+
"fact_rating_instruction": fact_rating_instruction,
|
|
191
|
+
"group_id": group_id,
|
|
192
|
+
"name": name,
|
|
193
|
+
},
|
|
175
194
|
request_options=request_options,
|
|
176
195
|
omit=OMIT,
|
|
177
196
|
)
|
|
@@ -87,7 +87,9 @@ class MemoryClient:
|
|
|
87
87
|
raise core_api_error_ApiError(status_code=_response.status_code, body=_response.text)
|
|
88
88
|
raise core_api_error_ApiError(status_code=_response.status_code, body=_response_json)
|
|
89
89
|
|
|
90
|
-
def delete_fact(
|
|
90
|
+
def delete_fact(
|
|
91
|
+
self, fact_uuid: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
92
|
+
) -> SuccessResponse:
|
|
91
93
|
"""
|
|
92
94
|
delete a fact
|
|
93
95
|
|
|
@@ -101,7 +103,7 @@ class MemoryClient:
|
|
|
101
103
|
|
|
102
104
|
Returns
|
|
103
105
|
-------
|
|
104
|
-
|
|
106
|
+
SuccessResponse
|
|
105
107
|
Deleted
|
|
106
108
|
|
|
107
109
|
Examples
|
|
@@ -119,7 +121,7 @@ class MemoryClient:
|
|
|
119
121
|
f"facts/{jsonable_encoder(fact_uuid)}", method="DELETE", request_options=request_options
|
|
120
122
|
)
|
|
121
123
|
if 200 <= _response.status_code < 300:
|
|
122
|
-
return pydantic_v1.parse_obj_as(
|
|
124
|
+
return pydantic_v1.parse_obj_as(SuccessResponse, _response.json()) # type: ignore
|
|
123
125
|
if _response.status_code == 404:
|
|
124
126
|
raise NotFoundError(pydantic_v1.parse_obj_as(types_api_error_ApiError, _response.json())) # type: ignore
|
|
125
127
|
if _response.status_code == 500:
|
|
@@ -1473,7 +1475,9 @@ class AsyncMemoryClient:
|
|
|
1473
1475
|
raise core_api_error_ApiError(status_code=_response.status_code, body=_response.text)
|
|
1474
1476
|
raise core_api_error_ApiError(status_code=_response.status_code, body=_response_json)
|
|
1475
1477
|
|
|
1476
|
-
async def delete_fact(
|
|
1478
|
+
async def delete_fact(
|
|
1479
|
+
self, fact_uuid: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
1480
|
+
) -> SuccessResponse:
|
|
1477
1481
|
"""
|
|
1478
1482
|
delete a fact
|
|
1479
1483
|
|
|
@@ -1487,7 +1491,7 @@ class AsyncMemoryClient:
|
|
|
1487
1491
|
|
|
1488
1492
|
Returns
|
|
1489
1493
|
-------
|
|
1490
|
-
|
|
1494
|
+
SuccessResponse
|
|
1491
1495
|
Deleted
|
|
1492
1496
|
|
|
1493
1497
|
Examples
|
|
@@ -1505,7 +1509,7 @@ class AsyncMemoryClient:
|
|
|
1505
1509
|
f"facts/{jsonable_encoder(fact_uuid)}", method="DELETE", request_options=request_options
|
|
1506
1510
|
)
|
|
1507
1511
|
if 200 <= _response.status_code < 300:
|
|
1508
|
-
return pydantic_v1.parse_obj_as(
|
|
1512
|
+
return pydantic_v1.parse_obj_as(SuccessResponse, _response.json()) # type: ignore
|
|
1509
1513
|
if _response.status_code == 404:
|
|
1510
1514
|
raise NotFoundError(pydantic_v1.parse_obj_as(types_api_error_ApiError, _response.json())) # type: ignore
|
|
1511
1515
|
if _response.status_code == 500:
|
|
@@ -5,6 +5,8 @@ from .apidata_document import ApidataDocument
|
|
|
5
5
|
from .apidata_document_collection import ApidataDocumentCollection
|
|
6
6
|
from .apidata_document_search_response import ApidataDocumentSearchResponse
|
|
7
7
|
from .apidata_document_with_score import ApidataDocumentWithScore
|
|
8
|
+
from .apidata_fact_rating_examples import ApidataFactRatingExamples
|
|
9
|
+
from .apidata_fact_rating_instruction import ApidataFactRatingInstruction
|
|
8
10
|
from .classify_session_request import ClassifySessionRequest
|
|
9
11
|
from .create_document_request import CreateDocumentRequest
|
|
10
12
|
from .end_session_response import EndSessionResponse
|
|
@@ -34,8 +36,6 @@ from .search_scope import SearchScope
|
|
|
34
36
|
from .search_type import SearchType
|
|
35
37
|
from .session import Session
|
|
36
38
|
from .session_classification import SessionClassification
|
|
37
|
-
from .session_fact_rating_examples import SessionFactRatingExamples
|
|
38
|
-
from .session_fact_rating_instruction import SessionFactRatingInstruction
|
|
39
39
|
from .session_list_response import SessionListResponse
|
|
40
40
|
from .session_search_response import SessionSearchResponse
|
|
41
41
|
from .session_search_result import SessionSearchResult
|
|
@@ -52,6 +52,8 @@ __all__ = [
|
|
|
52
52
|
"ApidataDocumentCollection",
|
|
53
53
|
"ApidataDocumentSearchResponse",
|
|
54
54
|
"ApidataDocumentWithScore",
|
|
55
|
+
"ApidataFactRatingExamples",
|
|
56
|
+
"ApidataFactRatingInstruction",
|
|
55
57
|
"ClassifySessionRequest",
|
|
56
58
|
"CreateDocumentRequest",
|
|
57
59
|
"EndSessionResponse",
|
|
@@ -81,8 +83,6 @@ __all__ = [
|
|
|
81
83
|
"SearchType",
|
|
82
84
|
"Session",
|
|
83
85
|
"SessionClassification",
|
|
84
|
-
"SessionFactRatingExamples",
|
|
85
|
-
"SessionFactRatingInstruction",
|
|
86
86
|
"SessionListResponse",
|
|
87
87
|
"SessionSearchResponse",
|
|
88
88
|
"SessionSearchResult",
|
|
@@ -7,7 +7,7 @@ from ..core.datetime_utils import serialize_datetime
|
|
|
7
7
|
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class
|
|
10
|
+
class ApidataFactRatingExamples(pydantic_v1.BaseModel):
|
|
11
11
|
high: typing.Optional[str] = None
|
|
12
12
|
low: typing.Optional[str] = None
|
|
13
13
|
medium: typing.Optional[str] = None
|
|
@@ -5,11 +5,11 @@ import typing
|
|
|
5
5
|
|
|
6
6
|
from ..core.datetime_utils import serialize_datetime
|
|
7
7
|
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
|
|
8
|
-
from .
|
|
8
|
+
from .apidata_fact_rating_examples import ApidataFactRatingExamples
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
class
|
|
12
|
-
examples: typing.Optional[
|
|
11
|
+
class ApidataFactRatingInstruction(pydantic_v1.BaseModel):
|
|
12
|
+
examples: typing.Optional[ApidataFactRatingExamples] = pydantic_v1.Field(default=None)
|
|
13
13
|
"""
|
|
14
14
|
Examples is a list of examples that demonstrate how facts might be rated based on your instruction. You should provide
|
|
15
15
|
an example of a highly rated example, a low rated example, and a medium (or in between example). For example, if you are rating
|
|
@@ -9,12 +9,12 @@ from .graph_data_type import GraphDataType
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class Episode(pydantic_v1.BaseModel):
|
|
12
|
-
content:
|
|
13
|
-
created_at:
|
|
12
|
+
content: str
|
|
13
|
+
created_at: str
|
|
14
14
|
name: typing.Optional[str] = None
|
|
15
15
|
source: typing.Optional[GraphDataType] = None
|
|
16
16
|
source_description: typing.Optional[str] = None
|
|
17
|
-
uuid_:
|
|
17
|
+
uuid_: str = pydantic_v1.Field(alias="uuid")
|
|
18
18
|
|
|
19
19
|
def json(self, **kwargs: typing.Any) -> str:
|
|
20
20
|
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
|
@@ -8,9 +8,14 @@ from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class Fact(pydantic_v1.BaseModel):
|
|
11
|
+
content: str
|
|
11
12
|
created_at: str
|
|
12
13
|
expired_at: typing.Optional[str] = None
|
|
13
|
-
fact: str
|
|
14
|
+
fact: str = pydantic_v1.Field()
|
|
15
|
+
"""
|
|
16
|
+
Deprecated. This field will be removed in the future, please use `content` instead.
|
|
17
|
+
"""
|
|
18
|
+
|
|
14
19
|
invalid_at: typing.Optional[str] = None
|
|
15
20
|
name: typing.Optional[str] = None
|
|
16
21
|
rating: typing.Optional[float] = None
|
|
@@ -11,7 +11,11 @@ class Group(pydantic_v1.BaseModel):
|
|
|
11
11
|
created_at: typing.Optional[str] = None
|
|
12
12
|
description: typing.Optional[str] = None
|
|
13
13
|
external_id: typing.Optional[str] = None
|
|
14
|
-
id: typing.Optional[int] = None
|
|
14
|
+
id: typing.Optional[int] = pydantic_v1.Field(default=None)
|
|
15
|
+
"""
|
|
16
|
+
TODO deprecate
|
|
17
|
+
"""
|
|
18
|
+
|
|
15
19
|
name: typing.Optional[str] = None
|
|
16
20
|
project_uuid: typing.Optional[str] = None
|
|
17
21
|
uuid_: typing.Optional[str] = pydantic_v1.Field(alias="uuid", default=None)
|
|
@@ -5,7 +5,7 @@ import typing
|
|
|
5
5
|
|
|
6
6
|
from ..core.datetime_utils import serialize_datetime
|
|
7
7
|
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
|
|
8
|
-
from .
|
|
8
|
+
from .apidata_fact_rating_instruction import ApidataFactRatingInstruction
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class Session(pydantic_v1.BaseModel):
|
|
@@ -13,9 +13,13 @@ class Session(pydantic_v1.BaseModel):
|
|
|
13
13
|
created_at: typing.Optional[str] = None
|
|
14
14
|
deleted_at: typing.Optional[str] = None
|
|
15
15
|
ended_at: typing.Optional[str] = None
|
|
16
|
-
fact_rating_instruction: typing.Optional[
|
|
16
|
+
fact_rating_instruction: typing.Optional[ApidataFactRatingInstruction] = None
|
|
17
17
|
facts: typing.Optional[typing.List[str]] = None
|
|
18
|
-
id: typing.Optional[int] = None
|
|
18
|
+
id: typing.Optional[int] = pydantic_v1.Field(default=None)
|
|
19
|
+
"""
|
|
20
|
+
TODO deprecate
|
|
21
|
+
"""
|
|
22
|
+
|
|
19
23
|
metadata: typing.Optional[typing.Dict[str, typing.Any]] = None
|
|
20
24
|
project_uuid: typing.Optional[str] = None
|
|
21
25
|
session_id: typing.Optional[str] = None
|
|
@@ -12,6 +12,7 @@ from ..errors.bad_request_error import BadRequestError
|
|
|
12
12
|
from ..errors.internal_server_error import InternalServerError
|
|
13
13
|
from ..errors.not_found_error import NotFoundError
|
|
14
14
|
from ..types.api_error import ApiError as types_api_error_ApiError
|
|
15
|
+
from ..types.fact_rating_instruction import FactRatingInstruction
|
|
15
16
|
from ..types.facts_response import FactsResponse
|
|
16
17
|
from ..types.session import Session
|
|
17
18
|
from ..types.success_response import SuccessResponse
|
|
@@ -30,6 +31,7 @@ class UserClient:
|
|
|
30
31
|
self,
|
|
31
32
|
*,
|
|
32
33
|
email: typing.Optional[str] = OMIT,
|
|
34
|
+
fact_rating_instruction: typing.Optional[FactRatingInstruction] = OMIT,
|
|
33
35
|
first_name: typing.Optional[str] = OMIT,
|
|
34
36
|
last_name: typing.Optional[str] = OMIT,
|
|
35
37
|
metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT,
|
|
@@ -44,6 +46,9 @@ class UserClient:
|
|
|
44
46
|
email : typing.Optional[str]
|
|
45
47
|
The email address of the user.
|
|
46
48
|
|
|
49
|
+
fact_rating_instruction : typing.Optional[FactRatingInstruction]
|
|
50
|
+
Optional instruction to use for fact rating.
|
|
51
|
+
|
|
47
52
|
first_name : typing.Optional[str]
|
|
48
53
|
The first name of the user.
|
|
49
54
|
|
|
@@ -78,6 +83,7 @@ class UserClient:
|
|
|
78
83
|
method="POST",
|
|
79
84
|
json={
|
|
80
85
|
"email": email,
|
|
86
|
+
"fact_rating_instruction": fact_rating_instruction,
|
|
81
87
|
"first_name": first_name,
|
|
82
88
|
"last_name": last_name,
|
|
83
89
|
"metadata": metadata,
|
|
@@ -250,6 +256,7 @@ class UserClient:
|
|
|
250
256
|
user_id: str,
|
|
251
257
|
*,
|
|
252
258
|
email: typing.Optional[str] = OMIT,
|
|
259
|
+
fact_rating_instruction: typing.Optional[FactRatingInstruction] = OMIT,
|
|
253
260
|
first_name: typing.Optional[str] = OMIT,
|
|
254
261
|
last_name: typing.Optional[str] = OMIT,
|
|
255
262
|
metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT,
|
|
@@ -266,6 +273,9 @@ class UserClient:
|
|
|
266
273
|
email : typing.Optional[str]
|
|
267
274
|
The email address of the user.
|
|
268
275
|
|
|
276
|
+
fact_rating_instruction : typing.Optional[FactRatingInstruction]
|
|
277
|
+
Optional instruction to use for fact rating.
|
|
278
|
+
|
|
269
279
|
first_name : typing.Optional[str]
|
|
270
280
|
The first name of the user.
|
|
271
281
|
|
|
@@ -297,7 +307,13 @@ class UserClient:
|
|
|
297
307
|
_response = self._client_wrapper.httpx_client.request(
|
|
298
308
|
f"users/{jsonable_encoder(user_id)}",
|
|
299
309
|
method="PATCH",
|
|
300
|
-
json={
|
|
310
|
+
json={
|
|
311
|
+
"email": email,
|
|
312
|
+
"fact_rating_instruction": fact_rating_instruction,
|
|
313
|
+
"first_name": first_name,
|
|
314
|
+
"last_name": last_name,
|
|
315
|
+
"metadata": metadata,
|
|
316
|
+
},
|
|
301
317
|
request_options=request_options,
|
|
302
318
|
omit=OMIT,
|
|
303
319
|
)
|
|
@@ -416,6 +432,7 @@ class AsyncUserClient:
|
|
|
416
432
|
self,
|
|
417
433
|
*,
|
|
418
434
|
email: typing.Optional[str] = OMIT,
|
|
435
|
+
fact_rating_instruction: typing.Optional[FactRatingInstruction] = OMIT,
|
|
419
436
|
first_name: typing.Optional[str] = OMIT,
|
|
420
437
|
last_name: typing.Optional[str] = OMIT,
|
|
421
438
|
metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT,
|
|
@@ -430,6 +447,9 @@ class AsyncUserClient:
|
|
|
430
447
|
email : typing.Optional[str]
|
|
431
448
|
The email address of the user.
|
|
432
449
|
|
|
450
|
+
fact_rating_instruction : typing.Optional[FactRatingInstruction]
|
|
451
|
+
Optional instruction to use for fact rating.
|
|
452
|
+
|
|
433
453
|
first_name : typing.Optional[str]
|
|
434
454
|
The first name of the user.
|
|
435
455
|
|
|
@@ -464,6 +484,7 @@ class AsyncUserClient:
|
|
|
464
484
|
method="POST",
|
|
465
485
|
json={
|
|
466
486
|
"email": email,
|
|
487
|
+
"fact_rating_instruction": fact_rating_instruction,
|
|
467
488
|
"first_name": first_name,
|
|
468
489
|
"last_name": last_name,
|
|
469
490
|
"metadata": metadata,
|
|
@@ -636,6 +657,7 @@ class AsyncUserClient:
|
|
|
636
657
|
user_id: str,
|
|
637
658
|
*,
|
|
638
659
|
email: typing.Optional[str] = OMIT,
|
|
660
|
+
fact_rating_instruction: typing.Optional[FactRatingInstruction] = OMIT,
|
|
639
661
|
first_name: typing.Optional[str] = OMIT,
|
|
640
662
|
last_name: typing.Optional[str] = OMIT,
|
|
641
663
|
metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT,
|
|
@@ -652,6 +674,9 @@ class AsyncUserClient:
|
|
|
652
674
|
email : typing.Optional[str]
|
|
653
675
|
The email address of the user.
|
|
654
676
|
|
|
677
|
+
fact_rating_instruction : typing.Optional[FactRatingInstruction]
|
|
678
|
+
Optional instruction to use for fact rating.
|
|
679
|
+
|
|
655
680
|
first_name : typing.Optional[str]
|
|
656
681
|
The first name of the user.
|
|
657
682
|
|
|
@@ -683,7 +708,13 @@ class AsyncUserClient:
|
|
|
683
708
|
_response = await self._client_wrapper.httpx_client.request(
|
|
684
709
|
f"users/{jsonable_encoder(user_id)}",
|
|
685
710
|
method="PATCH",
|
|
686
|
-
json={
|
|
711
|
+
json={
|
|
712
|
+
"email": email,
|
|
713
|
+
"fact_rating_instruction": fact_rating_instruction,
|
|
714
|
+
"first_name": first_name,
|
|
715
|
+
"last_name": last_name,
|
|
716
|
+
"metadata": metadata,
|
|
717
|
+
},
|
|
687
718
|
request_options=request_options,
|
|
688
719
|
omit=OMIT,
|
|
689
720
|
)
|
|
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
|