unique_toolkit 0.5.50__tar.gz → 0.5.51__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 (51) hide show
  1. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/CHANGELOG.md +3 -1
  2. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/PKG-INFO +4 -2
  3. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/pyproject.toml +1 -1
  4. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/language_model/service.py +10 -0
  5. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/LICENSE +0 -0
  6. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/README.md +0 -0
  7. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/__init__.py +0 -0
  8. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/_common/_base_service.py +0 -0
  9. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/_common/_time_utils.py +0 -0
  10. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/_common/exception.py +0 -0
  11. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/_common/validators.py +0 -0
  12. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/app/__init__.py +0 -0
  13. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/app/init_logging.py +0 -0
  14. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/app/init_sdk.py +0 -0
  15. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/app/performance/async_tasks.py +0 -0
  16. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/app/performance/async_wrapper.py +0 -0
  17. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/app/schemas.py +0 -0
  18. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/app/verification.py +0 -0
  19. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/chat/__init__.py +0 -0
  20. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/chat/schemas.py +0 -0
  21. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/chat/service.py +0 -0
  22. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/chat/state.py +0 -0
  23. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/chat/utils.py +0 -0
  24. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/content/__init__.py +0 -0
  25. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/content/schemas.py +0 -0
  26. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/content/service.py +0 -0
  27. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/content/utils.py +0 -0
  28. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/embedding/__init__.py +0 -0
  29. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/embedding/schemas.py +0 -0
  30. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/embedding/service.py +0 -0
  31. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/embedding/utils.py +0 -0
  32. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/evaluators/config.py +0 -0
  33. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/evaluators/context_relevancy/constants.py +0 -0
  34. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/evaluators/context_relevancy/prompts.py +0 -0
  35. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/evaluators/context_relevancy/service.py +0 -0
  36. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/evaluators/context_relevancy/utils.py +0 -0
  37. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/evaluators/exception.py +0 -0
  38. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/evaluators/hallucination/constants.py +0 -0
  39. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/evaluators/hallucination/prompts.py +0 -0
  40. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/evaluators/hallucination/service.py +0 -0
  41. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/evaluators/hallucination/utils.py +0 -0
  42. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/evaluators/output_parser.py +0 -0
  43. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/evaluators/schemas.py +0 -0
  44. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/language_model/__init__.py +0 -0
  45. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/language_model/builder.py +0 -0
  46. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/language_model/infos.py +0 -0
  47. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/language_model/prompt.py +0 -0
  48. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/language_model/schemas.py +0 -0
  49. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/language_model/utils.py +0 -0
  50. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/short_term_memory/schemas.py +0 -0
  51. {unique_toolkit-0.5.50 → unique_toolkit-0.5.51}/unique_toolkit/short_term_memory/service.py +0 -0
@@ -5,10 +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.51] - 2025-01-30
9
+ - Add missing structured output arguments in complete_async
10
+
8
11
  ## [0.5.50] - 2025-01-30
9
12
  - Add the possibility to define completion output structure through a pydantic class
10
13
 
11
-
12
14
  ## [0.5.49] - 2025-01-24
13
15
  - Add `parsed` and `refusal` to `LanguageModelAssistantMessage` to support structured output
14
16
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unique_toolkit
3
- Version: 0.5.50
3
+ Version: 0.5.51
4
4
  Summary:
5
5
  License: Proprietary
6
6
  Author: Martin Fadler
@@ -100,10 +100,12 @@ All notable changes to this project will be documented in this file.
100
100
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
101
101
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
102
102
 
103
+ ## [0.5.51] - 2025-01-30
104
+ - Add missing structured output arguments in complete_async
105
+
103
106
  ## [0.5.50] - 2025-01-30
104
107
  - Add the possibility to define completion output structure through a pydantic class
105
108
 
106
-
107
109
  ## [0.5.49] - 2025-01-24
108
110
  - Add `parsed` and `refusal` to `LanguageModelAssistantMessage` to support structured output
109
111
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "unique_toolkit"
3
- version = "0.5.50"
3
+ version = "0.5.51"
4
4
  description = ""
5
5
  authors = [
6
6
  "Martin Fadler <martin.fadler@unique.ch>",
@@ -51,6 +51,8 @@ class LanguageModelService(BaseService):
51
51
  temperature (float): The temperature value. Defaults to 0.
52
52
  timeout (int): The timeout value in milliseconds. Defaults to 240_000.
53
53
  tools (Optional[list[LanguageModelTool]]): The tools to use. Defaults to None.
54
+ structured_output_model (Optional[Type[BaseModel]]): The structured output model. Defaults to None.
55
+ structured_output_enforce_schema (bool): Whether to enforce the schema. Defaults to False.
54
56
  other_options (Optional[dict]): The other options to use. Defaults to None.
55
57
 
56
58
  Returns:
@@ -110,6 +112,8 @@ class LanguageModelService(BaseService):
110
112
  timeout (int): The timeout value in milliseconds for the request. Defaults to 240_000.
111
113
  tools (Optional[list[LanguageModelTool]]): Optional list of tools to include in the request.
112
114
  other_options (Optional[dict]): The other options to use. Defaults to None.
115
+ structured_output_model (Optional[Type[BaseModel]]): The structured output model. Defaults to None.
116
+ structured_output_enforce_schema (bool): Whether to enforce the schema. Defaults to False.
113
117
  logger (Optional[logging.Logger], optional): The logger used to log errors. Defaults to the logger for the current module.
114
118
 
115
119
  Returns:
@@ -151,6 +155,8 @@ class LanguageModelService(BaseService):
151
155
  temperature: float = DEFAULT_COMPLETE_TEMPERATURE,
152
156
  timeout: int = DEFAULT_COMPLETE_TIMEOUT,
153
157
  tools: Optional[list[LanguageModelTool]] = None,
158
+ structured_output_model: Optional[Type[BaseModel]] = None,
159
+ structured_output_enforce_schema: bool = False,
154
160
  other_options: Optional[dict] = None,
155
161
  ) -> LanguageModelResponse:
156
162
  """
@@ -166,6 +172,8 @@ class LanguageModelService(BaseService):
166
172
  temperature (float): The temperature setting for the completion. Defaults to 0.0.
167
173
  timeout (int): The timeout value in milliseconds for the request. Defaults to 240,000.
168
174
  tools (Optional[list[LanguageModelTool]]): Optional list of tools to include in the request.
175
+ structured_output_model (Optional[Type[BaseModel]]): The structured output model. Defaults to None.
176
+ structured_output_enforce_schema (bool): Whether to enforce the schema. Defaults to False.
169
177
  other_options (Optional[dict]): The other options to use. Defaults to None.
170
178
  Returns:
171
179
  LanguageModelResponse: The response object containing the completed result.
@@ -182,6 +190,8 @@ class LanguageModelService(BaseService):
182
190
  tools=tools,
183
191
  other_options=other_options,
184
192
  logger=self.logger,
193
+ structured_output_model=structured_output_model,
194
+ structured_output_enforce_schema=structured_output_enforce_schema,
185
195
  )
186
196
 
187
197
  def stream_complete(
File without changes