unique_sdk 0.10.10__tar.gz → 0.10.11__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 (41) hide show
  1. {unique_sdk-0.10.10 → unique_sdk-0.10.11}/CHANGELOG.md +5 -0
  2. {unique_sdk-0.10.10 → unique_sdk-0.10.11}/PKG-INFO +6 -1
  3. {unique_sdk-0.10.10 → unique_sdk-0.10.11}/pyproject.toml +1 -1
  4. {unique_sdk-0.10.10 → unique_sdk-0.10.11}/unique_sdk/_error.py +7 -11
  5. {unique_sdk-0.10.10 → unique_sdk-0.10.11}/unique_sdk/api_resources/_mcp.py +16 -8
  6. {unique_sdk-0.10.10 → unique_sdk-0.10.11}/unique_sdk/utils/sources.py +1 -1
  7. {unique_sdk-0.10.10 → unique_sdk-0.10.11}/LICENSE +0 -0
  8. {unique_sdk-0.10.10 → unique_sdk-0.10.11}/README.md +0 -0
  9. {unique_sdk-0.10.10 → unique_sdk-0.10.11}/unique_sdk/__init__.py +0 -0
  10. {unique_sdk-0.10.10 → unique_sdk-0.10.11}/unique_sdk/_api_requestor.py +0 -0
  11. {unique_sdk-0.10.10 → unique_sdk-0.10.11}/unique_sdk/_api_resource.py +0 -0
  12. {unique_sdk-0.10.10 → unique_sdk-0.10.11}/unique_sdk/_api_version.py +0 -0
  13. {unique_sdk-0.10.10 → unique_sdk-0.10.11}/unique_sdk/_http_client.py +0 -0
  14. {unique_sdk-0.10.10 → unique_sdk-0.10.11}/unique_sdk/_list_object.py +0 -0
  15. {unique_sdk-0.10.10 → unique_sdk-0.10.11}/unique_sdk/_object_classes.py +0 -0
  16. {unique_sdk-0.10.10 → unique_sdk-0.10.11}/unique_sdk/_request_options.py +0 -0
  17. {unique_sdk-0.10.10 → unique_sdk-0.10.11}/unique_sdk/_unique_object.py +0 -0
  18. {unique_sdk-0.10.10 → unique_sdk-0.10.11}/unique_sdk/_unique_ql.py +0 -0
  19. {unique_sdk-0.10.10 → unique_sdk-0.10.11}/unique_sdk/_unique_response.py +0 -0
  20. {unique_sdk-0.10.10 → unique_sdk-0.10.11}/unique_sdk/_util.py +0 -0
  21. {unique_sdk-0.10.10 → unique_sdk-0.10.11}/unique_sdk/_version.py +0 -0
  22. {unique_sdk-0.10.10 → unique_sdk-0.10.11}/unique_sdk/_webhook.py +0 -0
  23. {unique_sdk-0.10.10 → unique_sdk-0.10.11}/unique_sdk/api_resources/__init__.py +0 -0
  24. {unique_sdk-0.10.10 → unique_sdk-0.10.11}/unique_sdk/api_resources/_acronyms.py +0 -0
  25. {unique_sdk-0.10.10 → unique_sdk-0.10.11}/unique_sdk/api_resources/_agentic_table.py +0 -0
  26. {unique_sdk-0.10.10 → unique_sdk-0.10.11}/unique_sdk/api_resources/_chat_completion.py +0 -0
  27. {unique_sdk-0.10.10 → unique_sdk-0.10.11}/unique_sdk/api_resources/_content.py +0 -0
  28. {unique_sdk-0.10.10 → unique_sdk-0.10.11}/unique_sdk/api_resources/_embedding.py +0 -0
  29. {unique_sdk-0.10.10 → unique_sdk-0.10.11}/unique_sdk/api_resources/_event.py +0 -0
  30. {unique_sdk-0.10.10 → unique_sdk-0.10.11}/unique_sdk/api_resources/_folder.py +0 -0
  31. {unique_sdk-0.10.10 → unique_sdk-0.10.11}/unique_sdk/api_resources/_integrated.py +0 -0
  32. {unique_sdk-0.10.10 → unique_sdk-0.10.11}/unique_sdk/api_resources/_message.py +0 -0
  33. {unique_sdk-0.10.10 → unique_sdk-0.10.11}/unique_sdk/api_resources/_message_assessment.py +0 -0
  34. {unique_sdk-0.10.10 → unique_sdk-0.10.11}/unique_sdk/api_resources/_search.py +0 -0
  35. {unique_sdk-0.10.10 → unique_sdk-0.10.11}/unique_sdk/api_resources/_search_string.py +0 -0
  36. {unique_sdk-0.10.10 → unique_sdk-0.10.11}/unique_sdk/api_resources/_short_term_memory.py +0 -0
  37. {unique_sdk-0.10.10 → unique_sdk-0.10.11}/unique_sdk/api_resources/_space.py +0 -0
  38. {unique_sdk-0.10.10 → unique_sdk-0.10.11}/unique_sdk/utils/chat_history.py +0 -0
  39. {unique_sdk-0.10.10 → unique_sdk-0.10.11}/unique_sdk/utils/chat_in_space.py +0 -0
  40. {unique_sdk-0.10.10 → unique_sdk-0.10.11}/unique_sdk/utils/file_io.py +0 -0
  41. {unique_sdk-0.10.10 → unique_sdk-0.10.11}/unique_sdk/utils/token.py +0 -0
@@ -5,6 +5,11 @@ 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
+
9
+
10
+ ## [0.10.11] - 2025-08-24
11
+ - Enforce usage of ruff using pipeline
12
+
8
13
  ## [0.10.10] - 2025-08-18
9
14
  - Fix wrong name of references in `Space.Message`.
10
15
  - Fix wrong name of assessment in `Space.Message`.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unique_sdk
3
- Version: 0.10.10
3
+ Version: 0.10.11
4
4
  Summary:
5
5
  License: MIT
6
6
  Author: Martin Fadler
@@ -1488,6 +1488,11 @@ All notable changes to this project will be documented in this file.
1488
1488
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1489
1489
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
1490
1490
 
1491
+
1492
+
1493
+ ## [0.10.11] - 2025-08-24
1494
+ - Enforce usage of ruff using pipeline
1495
+
1491
1496
  ## [0.10.10] - 2025-08-18
1492
1497
  - Fix wrong name of references in `Space.Message`.
1493
1498
  - Fix wrong name of assessment in `Space.Message`.
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "unique_sdk"
3
- version = "0.10.10"
3
+ version = "0.10.11"
4
4
  description = ""
5
5
  authors = [
6
6
  "Martin Fadler <martin.fadler@unique.ch>",
@@ -51,17 +51,13 @@ class UniqueError(Exception):
51
51
 
52
52
  class UniqueErrorWithParamsCode(UniqueError):
53
53
  def __repr__(self):
54
- return (
55
- "%s(message=%r, params=%r, code=%r, http_status=%r, "
56
- "request_id=%r)"
57
- % (
58
- self.__class__.__name__,
59
- self._message,
60
- self.params, # type: ignore
61
- self.code,
62
- self.http_status,
63
- self.request_id,
64
- )
54
+ return "%s(message=%r, params=%r, code=%r, http_status=%r, request_id=%r)" % (
55
+ self.__class__.__name__,
56
+ self._message,
57
+ self.params, # type: ignore
58
+ self.code,
59
+ self.http_status,
60
+ self.request_id,
65
61
  )
66
62
 
67
63
 
@@ -19,6 +19,7 @@ from unique_sdk._request_options import RequestOptions
19
19
 
20
20
  class CallToolTextResourceDto(TypedDict):
21
21
  """Text resource containing URI, optional MIME type, and text content."""
22
+
22
23
  uri: str
23
24
  mimeType: Optional[str]
24
25
  text: str
@@ -26,6 +27,7 @@ class CallToolTextResourceDto(TypedDict):
26
27
 
27
28
  class CallToolBlobResourceDto(TypedDict):
28
29
  """Blob resource containing URI, optional MIME type, and base64-encoded content."""
30
+
29
31
  uri: str
30
32
  mimeType: Optional[str]
31
33
  blob: str
@@ -33,16 +35,21 @@ class CallToolBlobResourceDto(TypedDict):
33
35
 
34
36
  class CallToolContentDto(TypedDict):
35
37
  """Content returned by an MCP tool call."""
38
+
36
39
  type: Literal["text", "image", "audio", "resource_link", "resource"]
37
-
40
+
38
41
  # Optional fields for different content types
39
42
  text: NotRequired[Optional[str]] # For type: "text"
40
43
  data: NotRequired[Optional[str]] # Base64 data for type: "image" or "audio"
41
- mimeType: NotRequired[Optional[str]] # For type: "image", "audio", or "resource_link"
44
+ mimeType: NotRequired[
45
+ Optional[str]
46
+ ] # For type: "image", "audio", or "resource_link"
42
47
  uri: NotRequired[Optional[str]] # For type: "resource_link"
43
48
  name: NotRequired[Optional[str]] # For type: "resource_link"
44
49
  description: NotRequired[Optional[str]] # For type: "resource_link"
45
- resource: NotRequired[Optional[Union[CallToolTextResourceDto, CallToolBlobResourceDto]]] # For type: "resource"
50
+ resource: NotRequired[
51
+ Optional[Union[CallToolTextResourceDto, CallToolBlobResourceDto]]
52
+ ] # For type: "resource"
46
53
 
47
54
 
48
55
  class MCP(APIResource["MCP"]):
@@ -50,6 +57,7 @@ class MCP(APIResource["MCP"]):
50
57
 
51
58
  class CallToolParams(RequestOptions):
52
59
  """Parameters for calling an MCP tool."""
60
+
53
61
  name: str
54
62
  arguments: Dict[str, Any]
55
63
 
@@ -68,12 +76,12 @@ class MCP(APIResource["MCP"]):
68
76
  ) -> "MCP":
69
77
  """
70
78
  Call an MCP tool with the specified name and arguments.
71
-
79
+
72
80
  Args:
73
81
  user_id: The ID of the user making the request
74
82
  company_id: The ID of the company
75
83
  **params: Tool parameters including name and arguments
76
-
84
+
77
85
  Returns:
78
86
  MCP: The response from the MCP tool call
79
87
  """
@@ -97,12 +105,12 @@ class MCP(APIResource["MCP"]):
97
105
  ) -> "MCP":
98
106
  """
99
107
  Asynchronously call an MCP tool with the specified name and arguments.
100
-
108
+
101
109
  Args:
102
110
  user_id: The ID of the user making the request
103
111
  company_id: The ID of the company
104
112
  **params: Tool parameters including name and arguments
105
-
113
+
106
114
  Returns:
107
115
  MCP: The response from the MCP tool call
108
116
  """
@@ -115,4 +123,4 @@ class MCP(APIResource["MCP"]):
115
123
  company_id,
116
124
  params=params,
117
125
  ),
118
- )
126
+ )
@@ -24,7 +24,7 @@ def sort_sources(searchContext) -> list[str]:
24
24
  sources.sort(key=lambda x: x.order)
25
25
  for i, s in enumerate(sources):
26
26
  s.text = re.sub(
27
- r"<\|/document\|>", f' text part {s["order"]}<|/document|>', s["text"]
27
+ r"<\|/document\|>", f" text part {s['order']}<|/document|>", s["text"]
28
28
  )
29
29
  s.text = re.sub(r"<\|info\|>(.*?)<\|\/info\|>", "", s.text)
30
30
  pages_postfix = generate_pages_postfix([s])
File without changes
File without changes