zep-cloud 2.1.0__tar.gz → 2.2.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 (95) hide show
  1. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/PKG-INFO +1 -1
  2. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/pyproject.toml +1 -1
  3. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/__init__.py +2 -0
  4. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/core/client_wrapper.py +1 -1
  5. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/graph/client.py +6 -6
  6. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/group/client.py +12 -8
  7. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/memory/client.py +19 -8
  8. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/__init__.py +2 -0
  9. zep_cloud-2.2.0/src/zep_cloud/types/add_memory_response.py +29 -0
  10. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/reranker.py +1 -1
  11. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/user.py +2 -0
  12. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/LICENSE +0 -0
  13. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/README.md +0 -0
  14. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/base_client.py +0 -0
  15. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/client.py +0 -0
  16. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/core/__init__.py +0 -0
  17. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/core/api_error.py +0 -0
  18. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/core/datetime_utils.py +0 -0
  19. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/core/file.py +0 -0
  20. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/core/http_client.py +0 -0
  21. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/core/jsonable_encoder.py +0 -0
  22. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/core/pydantic_utilities.py +0 -0
  23. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/core/query_encoder.py +0 -0
  24. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/core/remove_none_from_dict.py +0 -0
  25. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/core/request_options.py +0 -0
  26. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/document/__init__.py +0 -0
  27. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/document/client.py +0 -0
  28. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/environment.py +0 -0
  29. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/errors/__init__.py +0 -0
  30. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/errors/bad_request_error.py +0 -0
  31. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/errors/conflict_error.py +0 -0
  32. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/errors/internal_server_error.py +0 -0
  33. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/errors/not_found_error.py +0 -0
  34. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/errors/unauthorized_error.py +0 -0
  35. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/external_clients/document.py +0 -0
  36. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/external_clients/memory.py +0 -0
  37. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/external_clients/user.py +0 -0
  38. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/extractor/__init__.py +0 -0
  39. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/extractor/models.py +0 -0
  40. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/graph/__init__.py +0 -0
  41. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/graph/edge/__init__.py +0 -0
  42. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/graph/edge/client.py +0 -0
  43. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/graph/episode/__init__.py +0 -0
  44. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/graph/episode/client.py +0 -0
  45. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/graph/node/__init__.py +0 -0
  46. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/graph/node/client.py +0 -0
  47. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/group/__init__.py +0 -0
  48. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/memory/__init__.py +0 -0
  49. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/py.typed +0 -0
  50. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/api_error.py +0 -0
  51. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/apidata_document.py +0 -0
  52. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/apidata_document_collection.py +0 -0
  53. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/apidata_document_search_response.py +0 -0
  54. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/apidata_document_with_score.py +0 -0
  55. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/apidata_fact_rating_examples.py +0 -0
  56. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/apidata_fact_rating_instruction.py +0 -0
  57. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/classify_session_request.py +0 -0
  58. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/create_document_request.py +0 -0
  59. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/end_session_response.py +0 -0
  60. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/end_sessions_response.py +0 -0
  61. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/entity_edge.py +0 -0
  62. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/entity_node.py +0 -0
  63. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/episode.py +0 -0
  64. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/episode_response.py +0 -0
  65. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/fact.py +0 -0
  66. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/fact_rating_examples.py +0 -0
  67. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/fact_rating_instruction.py +0 -0
  68. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/fact_response.py +0 -0
  69. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/facts_response.py +0 -0
  70. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/graph_data_type.py +0 -0
  71. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/graph_search_results.py +0 -0
  72. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/graph_search_scope.py +0 -0
  73. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/group.py +0 -0
  74. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/memory.py +0 -0
  75. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/memory_search_result.py +0 -0
  76. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/message.py +0 -0
  77. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/message_list_response.py +0 -0
  78. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/new_fact.py +0 -0
  79. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/question.py +0 -0
  80. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/role_type.py +0 -0
  81. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/search_scope.py +0 -0
  82. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/search_type.py +0 -0
  83. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/session.py +0 -0
  84. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/session_classification.py +0 -0
  85. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/session_list_response.py +0 -0
  86. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/session_search_response.py +0 -0
  87. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/session_search_result.py +0 -0
  88. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/success_response.py +0 -0
  89. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/summary.py +0 -0
  90. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/summary_list_response.py +0 -0
  91. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/update_document_list_request.py +0 -0
  92. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/types/user_list_response.py +0 -0
  93. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/user/__init__.py +0 -0
  94. {zep_cloud-2.1.0 → zep_cloud-2.2.0}/src/zep_cloud/user/client.py +0 -0
  95. {zep_cloud-2.1.0 → zep_cloud-2.2.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.1.0
3
+ Version: 2.2.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.1.0"
3
+ version = "2.2.0"
4
4
  description = ""
5
5
  readme = "README.md"
6
6
  authors = []
@@ -1,6 +1,7 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
3
  from .types import (
4
+ AddMemoryResponse,
4
5
  ApiError,
5
6
  ApidataDocument,
6
7
  ApidataDocumentCollection,
@@ -53,6 +54,7 @@ from .environment import ZepEnvironment
53
54
  from .version import __version__
54
55
 
55
56
  __all__ = [
57
+ "AddMemoryResponse",
56
58
  "ApiError",
57
59
  "ApidataDocument",
58
60
  "ApidataDocumentCollection",
@@ -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.1.0",
20
+ "X-Fern-SDK-Version": "2.2.0",
21
21
  }
22
22
  headers["Authorization"] = f"Api-Key {self.api_key}"
23
23
  return headers
@@ -105,7 +105,7 @@ class GraphClient:
105
105
  request_options: typing.Optional[RequestOptions] = None
106
106
  ) -> GraphSearchResults:
107
107
  """
108
- Perform a graph search query
108
+ Perform a graph search query.
109
109
 
110
110
  Parameters
111
111
  ----------
@@ -119,7 +119,7 @@ class GraphClient:
119
119
  one of user_id or group_id must be provided
120
120
 
121
121
  limit : typing.Optional[int]
122
- The maximum number of facts to retrieve
122
+ The maximum number of facts to retrieve. Defaults to 10. Limited to 50.
123
123
 
124
124
  min_score : typing.Optional[float]
125
125
  minimum similarity score for a result to be returned
@@ -131,7 +131,7 @@ class GraphClient:
131
131
  Defaults to RRF
132
132
 
133
133
  scope : typing.Optional[GraphSearchScope]
134
- Defaults to Edges. Nodes and Communities will be added in the future.
134
+ Defaults to Edges. Communities will be added in the future.
135
135
 
136
136
  user_id : typing.Optional[str]
137
137
  one of user_id or group_id must be provided
@@ -269,7 +269,7 @@ class AsyncGraphClient:
269
269
  request_options: typing.Optional[RequestOptions] = None
270
270
  ) -> GraphSearchResults:
271
271
  """
272
- Perform a graph search query
272
+ Perform a graph search query.
273
273
 
274
274
  Parameters
275
275
  ----------
@@ -283,7 +283,7 @@ class AsyncGraphClient:
283
283
  one of user_id or group_id must be provided
284
284
 
285
285
  limit : typing.Optional[int]
286
- The maximum number of facts to retrieve
286
+ The maximum number of facts to retrieve. Defaults to 10. Limited to 50.
287
287
 
288
288
  min_score : typing.Optional[float]
289
289
  minimum similarity score for a result to be returned
@@ -295,7 +295,7 @@ class AsyncGraphClient:
295
295
  Defaults to RRF
296
296
 
297
297
  scope : typing.Optional[GraphSearchScope]
298
- Defaults to Edges. Nodes and Communities will be added in the future.
298
+ Defaults to Edges. Communities will be added in the future.
299
299
 
300
300
  user_id : typing.Optional[str]
301
301
  one of user_id or group_id must be provided
@@ -27,9 +27,9 @@ class GroupClient:
27
27
  def add(
28
28
  self,
29
29
  *,
30
+ group_id: str,
30
31
  description: typing.Optional[str] = OMIT,
31
32
  fact_rating_instruction: typing.Optional[ApidataFactRatingInstruction] = OMIT,
32
- group_id: typing.Optional[str] = OMIT,
33
33
  name: typing.Optional[str] = OMIT,
34
34
  request_options: typing.Optional[RequestOptions] = None,
35
35
  ) -> Group:
@@ -38,13 +38,13 @@ class GroupClient:
38
38
 
39
39
  Parameters
40
40
  ----------
41
+ group_id : str
42
+
41
43
  description : typing.Optional[str]
42
44
 
43
45
  fact_rating_instruction : typing.Optional[ApidataFactRatingInstruction]
44
46
  UserIDs []string `json:"user_ids"`
45
47
 
46
- group_id : typing.Optional[str]
47
-
48
48
  name : typing.Optional[str]
49
49
 
50
50
  request_options : typing.Optional[RequestOptions]
@@ -62,7 +62,9 @@ class GroupClient:
62
62
  client = Zep(
63
63
  api_key="YOUR_API_KEY",
64
64
  )
65
- client.group.add()
65
+ client.group.add(
66
+ group_id="group_id",
67
+ )
66
68
  """
67
69
  _response = self._client_wrapper.httpx_client.request(
68
70
  "groups",
@@ -145,9 +147,9 @@ class AsyncGroupClient:
145
147
  async def add(
146
148
  self,
147
149
  *,
150
+ group_id: str,
148
151
  description: typing.Optional[str] = OMIT,
149
152
  fact_rating_instruction: typing.Optional[ApidataFactRatingInstruction] = OMIT,
150
- group_id: typing.Optional[str] = OMIT,
151
153
  name: typing.Optional[str] = OMIT,
152
154
  request_options: typing.Optional[RequestOptions] = None,
153
155
  ) -> Group:
@@ -156,13 +158,13 @@ class AsyncGroupClient:
156
158
 
157
159
  Parameters
158
160
  ----------
161
+ group_id : str
162
+
159
163
  description : typing.Optional[str]
160
164
 
161
165
  fact_rating_instruction : typing.Optional[ApidataFactRatingInstruction]
162
166
  UserIDs []string `json:"user_ids"`
163
167
 
164
- group_id : typing.Optional[str]
165
-
166
168
  name : typing.Optional[str]
167
169
 
168
170
  request_options : typing.Optional[RequestOptions]
@@ -180,7 +182,9 @@ class AsyncGroupClient:
180
182
  client = AsyncZep(
181
183
  api_key="YOUR_API_KEY",
182
184
  )
183
- await client.group.add()
185
+ await client.group.add(
186
+ group_id="group_id",
187
+ )
184
188
  """
185
189
  _response = await self._client_wrapper.httpx_client.request(
186
190
  "groups",
@@ -12,6 +12,7 @@ from ..errors.bad_request_error import BadRequestError
12
12
  from ..errors.conflict_error import ConflictError
13
13
  from ..errors.internal_server_error import InternalServerError
14
14
  from ..errors.not_found_error import NotFoundError
15
+ from ..types.add_memory_response import AddMemoryResponse
15
16
  from ..types.api_error import ApiError as types_api_error_ApiError
16
17
  from ..types.classify_session_request import ClassifySessionRequest
17
18
  from ..types.end_session_response import EndSessionResponse
@@ -938,9 +939,10 @@ class MemoryClient:
938
939
  *,
939
940
  messages: typing.Sequence[Message],
940
941
  fact_instruction: typing.Optional[str] = OMIT,
942
+ return_context: typing.Optional[bool] = OMIT,
941
943
  summary_instruction: typing.Optional[str] = OMIT,
942
944
  request_options: typing.Optional[RequestOptions] = None,
943
- ) -> SuccessResponse:
945
+ ) -> AddMemoryResponse:
944
946
  """
945
947
  Add memory to the specified session.
946
948
 
@@ -955,6 +957,9 @@ class MemoryClient:
955
957
  fact_instruction : typing.Optional[str]
956
958
  Additional instruction for generating the facts. Zep Cloud Only, will be ignored on Community Edition.
957
959
 
960
+ return_context : typing.Optional[bool]
961
+ Optionally return memory context relevant to the most recent messages.
962
+
958
963
  summary_instruction : typing.Optional[str]
959
964
  Additional instruction for generating the summary. Zep Cloud Only, will be ignored on Community Edition.
960
965
 
@@ -963,8 +968,8 @@ class MemoryClient:
963
968
 
964
969
  Returns
965
970
  -------
966
- SuccessResponse
967
- OK
971
+ AddMemoryResponse
972
+ An object, optionally containing memory context retrieved for the last message
968
973
 
969
974
  Examples
970
975
  --------
@@ -990,13 +995,14 @@ class MemoryClient:
990
995
  json={
991
996
  "fact_instruction": fact_instruction,
992
997
  "messages": messages,
998
+ "return_context": return_context,
993
999
  "summary_instruction": summary_instruction,
994
1000
  },
995
1001
  request_options=request_options,
996
1002
  omit=OMIT,
997
1003
  )
998
1004
  if 200 <= _response.status_code < 300:
999
- return pydantic_v1.parse_obj_as(SuccessResponse, _response.json()) # type: ignore
1005
+ return pydantic_v1.parse_obj_as(AddMemoryResponse, _response.json()) # type: ignore
1000
1006
  if _response.status_code == 500:
1001
1007
  raise InternalServerError(
1002
1008
  pydantic_v1.parse_obj_as(types_api_error_ApiError, _response.json()) # type: ignore
@@ -2326,9 +2332,10 @@ class AsyncMemoryClient:
2326
2332
  *,
2327
2333
  messages: typing.Sequence[Message],
2328
2334
  fact_instruction: typing.Optional[str] = OMIT,
2335
+ return_context: typing.Optional[bool] = OMIT,
2329
2336
  summary_instruction: typing.Optional[str] = OMIT,
2330
2337
  request_options: typing.Optional[RequestOptions] = None,
2331
- ) -> SuccessResponse:
2338
+ ) -> AddMemoryResponse:
2332
2339
  """
2333
2340
  Add memory to the specified session.
2334
2341
 
@@ -2343,6 +2350,9 @@ class AsyncMemoryClient:
2343
2350
  fact_instruction : typing.Optional[str]
2344
2351
  Additional instruction for generating the facts. Zep Cloud Only, will be ignored on Community Edition.
2345
2352
 
2353
+ return_context : typing.Optional[bool]
2354
+ Optionally return memory context relevant to the most recent messages.
2355
+
2346
2356
  summary_instruction : typing.Optional[str]
2347
2357
  Additional instruction for generating the summary. Zep Cloud Only, will be ignored on Community Edition.
2348
2358
 
@@ -2351,8 +2361,8 @@ class AsyncMemoryClient:
2351
2361
 
2352
2362
  Returns
2353
2363
  -------
2354
- SuccessResponse
2355
- OK
2364
+ AddMemoryResponse
2365
+ An object, optionally containing memory context retrieved for the last message
2356
2366
 
2357
2367
  Examples
2358
2368
  --------
@@ -2378,13 +2388,14 @@ class AsyncMemoryClient:
2378
2388
  json={
2379
2389
  "fact_instruction": fact_instruction,
2380
2390
  "messages": messages,
2391
+ "return_context": return_context,
2381
2392
  "summary_instruction": summary_instruction,
2382
2393
  },
2383
2394
  request_options=request_options,
2384
2395
  omit=OMIT,
2385
2396
  )
2386
2397
  if 200 <= _response.status_code < 300:
2387
- return pydantic_v1.parse_obj_as(SuccessResponse, _response.json()) # type: ignore
2398
+ return pydantic_v1.parse_obj_as(AddMemoryResponse, _response.json()) # type: ignore
2388
2399
  if _response.status_code == 500:
2389
2400
  raise InternalServerError(
2390
2401
  pydantic_v1.parse_obj_as(types_api_error_ApiError, _response.json()) # type: ignore
@@ -1,5 +1,6 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
+ from .add_memory_response import AddMemoryResponse
3
4
  from .api_error import ApiError
4
5
  from .apidata_document import ApidataDocument
5
6
  from .apidata_document_collection import ApidataDocumentCollection
@@ -47,6 +48,7 @@ from .user import User
47
48
  from .user_list_response import UserListResponse
48
49
 
49
50
  __all__ = [
51
+ "AddMemoryResponse",
50
52
  "ApiError",
51
53
  "ApidataDocument",
52
54
  "ApidataDocumentCollection",
@@ -0,0 +1,29 @@
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
+
9
+
10
+ class AddMemoryResponse(pydantic_v1.BaseModel):
11
+ context: typing.Optional[str] = None
12
+
13
+ def json(self, **kwargs: typing.Any) -> str:
14
+ kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
15
+ return super().json(**kwargs_with_defaults)
16
+
17
+ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
18
+ kwargs_with_defaults_exclude_unset: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
19
+ kwargs_with_defaults_exclude_none: typing.Any = {"by_alias": True, "exclude_none": True, **kwargs}
20
+
21
+ return deep_union_pydantic_dicts(
22
+ super().dict(**kwargs_with_defaults_exclude_unset), super().dict(**kwargs_with_defaults_exclude_none)
23
+ )
24
+
25
+ class Config:
26
+ frozen = True
27
+ smart_union = True
28
+ extra = pydantic_v1.Extra.allow
29
+ json_encoders = {dt.datetime: serialize_datetime}
@@ -2,4 +2,4 @@
2
2
 
3
3
  import typing
4
4
 
5
- Reranker = typing.Union[typing.Literal["rrf", "mmr", "node_distance", "episode_mentions"], typing.Any]
5
+ Reranker = typing.Union[typing.Literal["rrf", "mmr", "node_distance", "episode_mentions", "cross_encoder"], typing.Any]
@@ -5,12 +5,14 @@ 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 .fact_rating_instruction import FactRatingInstruction
8
9
 
9
10
 
10
11
  class User(pydantic_v1.BaseModel):
11
12
  created_at: typing.Optional[str] = None
12
13
  deleted_at: typing.Optional[str] = None
13
14
  email: typing.Optional[str] = None
15
+ fact_rating_instruction: typing.Optional[FactRatingInstruction] = None
14
16
  first_name: typing.Optional[str] = None
15
17
  id: typing.Optional[int] = None
16
18
  last_name: typing.Optional[str] = None
File without changes
File without changes