unique_toolkit 0.5.7__tar.gz → 0.5.9__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 (26) hide show
  1. {unique_toolkit-0.5.7 → unique_toolkit-0.5.9}/CHANGELOG.md +6 -0
  2. {unique_toolkit-0.5.7 → unique_toolkit-0.5.9}/PKG-INFO +7 -1
  3. {unique_toolkit-0.5.7 → unique_toolkit-0.5.9}/pyproject.toml +1 -1
  4. {unique_toolkit-0.5.7 → unique_toolkit-0.5.9}/unique_toolkit/content/schemas.py +4 -2
  5. {unique_toolkit-0.5.7 → unique_toolkit-0.5.9}/unique_toolkit/content/service.py +6 -2
  6. {unique_toolkit-0.5.7 → unique_toolkit-0.5.9}/LICENSE +0 -0
  7. {unique_toolkit-0.5.7 → unique_toolkit-0.5.9}/README.md +0 -0
  8. {unique_toolkit-0.5.7 → unique_toolkit-0.5.9}/unique_toolkit/__init__.py +0 -0
  9. {unique_toolkit-0.5.7 → unique_toolkit-0.5.9}/unique_toolkit/_common/_base_service.py +0 -0
  10. {unique_toolkit-0.5.7 → unique_toolkit-0.5.9}/unique_toolkit/app/init_logging.py +0 -0
  11. {unique_toolkit-0.5.7 → unique_toolkit-0.5.9}/unique_toolkit/app/init_sdk.py +0 -0
  12. {unique_toolkit-0.5.7 → unique_toolkit-0.5.9}/unique_toolkit/app/performance/async_tasks.py +0 -0
  13. {unique_toolkit-0.5.7 → unique_toolkit-0.5.9}/unique_toolkit/app/performance/async_wrapper.py +0 -0
  14. {unique_toolkit-0.5.7 → unique_toolkit-0.5.9}/unique_toolkit/app/schemas.py +0 -0
  15. {unique_toolkit-0.5.7 → unique_toolkit-0.5.9}/unique_toolkit/app/verification.py +0 -0
  16. {unique_toolkit-0.5.7 → unique_toolkit-0.5.9}/unique_toolkit/chat/schemas.py +0 -0
  17. {unique_toolkit-0.5.7 → unique_toolkit-0.5.9}/unique_toolkit/chat/service.py +0 -0
  18. {unique_toolkit-0.5.7 → unique_toolkit-0.5.9}/unique_toolkit/chat/state.py +0 -0
  19. {unique_toolkit-0.5.7 → unique_toolkit-0.5.9}/unique_toolkit/chat/utils.py +0 -0
  20. {unique_toolkit-0.5.7 → unique_toolkit-0.5.9}/unique_toolkit/content/utils.py +0 -0
  21. {unique_toolkit-0.5.7 → unique_toolkit-0.5.9}/unique_toolkit/embedding/schemas.py +0 -0
  22. {unique_toolkit-0.5.7 → unique_toolkit-0.5.9}/unique_toolkit/embedding/service.py +0 -0
  23. {unique_toolkit-0.5.7 → unique_toolkit-0.5.9}/unique_toolkit/language_model/infos.py +0 -0
  24. {unique_toolkit-0.5.7 → unique_toolkit-0.5.9}/unique_toolkit/language_model/schemas.py +0 -0
  25. {unique_toolkit-0.5.7 → unique_toolkit-0.5.9}/unique_toolkit/language_model/service.py +0 -0
  26. {unique_toolkit-0.5.7 → unique_toolkit-0.5.9}/unique_toolkit/language_model/utils.py +0 -0
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.5.9] - 2024-08-6
9
+ - added `created_at` and `updated_at` to content schema
10
+
11
+ ## [0.5.8] - 2024-08-1
12
+ - `RerankerConfig` serialization alias added
13
+
8
14
  ## [0.5.7] - 2024-07-31
9
15
  - Replace mocked async service calls with async calls in `unique_sdk`
10
16
  - Change async methods name from `async_*` to `*_async`
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unique_toolkit
3
- Version: 0.5.7
3
+ Version: 0.5.9
4
4
  Summary:
5
5
  License: MIT
6
6
  Author: Martin Fadler
@@ -101,6 +101,12 @@ All notable changes to this project will be documented in this file.
101
101
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
102
102
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
103
103
 
104
+ ## [0.5.9] - 2024-08-6
105
+ - added `created_at` and `updated_at` to content schema
106
+
107
+ ## [0.5.8] - 2024-08-1
108
+ - `RerankerConfig` serialization alias added
109
+
104
110
  ## [0.5.7] - 2024-07-31
105
111
  - Replace mocked async service calls with async calls in `unique_sdk`
106
112
  - Change async methods name from `async_*` to `*_async`
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "unique_toolkit"
3
- version = "0.5.7"
3
+ version = "0.5.9"
4
4
  description = ""
5
5
  authors = [
6
6
  "Martin Fadler <martin.fadler@unique.ch>",
@@ -3,7 +3,7 @@ from enum import StrEnum
3
3
  from typing import Optional
4
4
 
5
5
  from humps import camelize
6
- from pydantic import BaseModel, ConfigDict
6
+ from pydantic import BaseModel, ConfigDict, Field
7
7
 
8
8
  # set config to convert camelCase to snake_case
9
9
  model_config = ConfigDict(
@@ -47,6 +47,8 @@ class Content(BaseModel):
47
47
  chunks: list[ContentChunk] = []
48
48
  write_url: str | None = None
49
49
  read_url: str | None = None
50
+ created_at: datetime | None = None
51
+ updated_at: datetime | None = None
50
52
 
51
53
 
52
54
  class ContentReference(BaseModel):
@@ -92,5 +94,5 @@ class ContentUploadInput(BaseModel):
92
94
 
93
95
  class RerankerConfig(BaseModel):
94
96
  model_config = model_config
95
- deployment_name: str
97
+ deployment_name: str = Field(serialization_alias="deploymentName")
96
98
  options: dict | None = None
@@ -69,7 +69,9 @@ class ContentService(BaseService):
69
69
  searchType=search_type.name,
70
70
  scopeIds=scope_ids,
71
71
  limit=limit,
72
- reranker=reranker_config.model_dump() if reranker_config else None,
72
+ reranker=reranker_config.model_dump(by_alias=True)
73
+ if reranker_config
74
+ else None,
73
75
  language=search_language,
74
76
  chatOnly=chat_only,
75
77
  )
@@ -121,7 +123,9 @@ class ContentService(BaseService):
121
123
  searchType=search_type.name,
122
124
  scopeIds=scope_ids,
123
125
  limit=limit,
124
- reranker=reranker_config.model_dump() if reranker_config else None,
126
+ reranker=reranker_config.model_dump(by_alias=True)
127
+ if reranker_config
128
+ else None,
125
129
  language=search_language,
126
130
  chatOnly=chat_only,
127
131
  )
File without changes
File without changes