unique_toolkit 2026.48.0.dev2__py3-none-any.whl → 2026.48.0.dev4__py3-none-any.whl

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.
@@ -319,6 +319,10 @@ class BaseEventPayload(BaseModel):
319
319
  default=None,
320
320
  description="The correlation to parent message in another chat.",
321
321
  )
322
+ ui_language: str | None = Field(
323
+ default=None,
324
+ description="Base language tag of the chat UI the event was sent from (en, de, fr).",
325
+ )
322
326
 
323
327
 
324
328
  class ChatEventPayload(BaseEventPayload):
@@ -0,0 +1,28 @@
1
+ """The language the chat UI is shown in, for text a module writes to the chat."""
2
+
3
+ from enum import StrEnum
4
+ from typing import Any
5
+
6
+ from unique_toolkit.app.schemas import AssistantWebhookEvent, BaseEventPayload
7
+
8
+
9
+ class UiLanguage(StrEnum):
10
+ """The languages the chat UI is available in."""
11
+
12
+ EN = "en"
13
+ DE = "de"
14
+ FR = "fr"
15
+
16
+
17
+ def ui_language(event: AssistantWebhookEvent[Any, BaseEventPayload]) -> UiLanguage:
18
+ """Read the chat UI language an event was sent from.
19
+
20
+ Args:
21
+ event (AssistantWebhookEvent): A chat or Agentic Table event.
22
+
23
+ Returns:
24
+ UiLanguage: The language in ``payload.ui_language``; English when it is
25
+ missing or not a supported language.
26
+ """
27
+ value = event.payload.ui_language
28
+ return UiLanguage(value) if value in UiLanguage else UiLanguage.EN
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: unique-toolkit
3
- Version: 2026.48.0.dev2
3
+ Version: 2026.48.0.dev4
4
4
  Summary:
5
5
  Author: Cedric Klinkert, Martin Fadler, Sadique Sheik, Fabian Schläpfer, Pascal Hauri, Ejiroghene Oki-Peter, Rami Azouz, Ricardo Visini, Sanzio Monti
6
6
  Author-email: Cedric Klinkert <cedric.klinkert@unique.ch>, Martin Fadler <martin.fadler@unique.ch>, Sadique Sheik <sadique@unique.ch>, Fabian Schläpfer <fabian@unique.ch>, Pascal Hauri <pascal@unique.ch>, Ejiroghene Oki-Peter <oki-peter.ejiroghene@unique.ai>, Rami Azouz <rami.ext@unique.ch>, Ricardo Visini <ricardo.visini@unique.ch>, Sanzio Monti <sanzio.monti@unique.ai>
@@ -16,7 +16,7 @@ Requires-Dist: sseclient>=0.0.27,<0.0.28
16
16
  Requires-Dist: openai>=1.105.0,<3
17
17
  Requires-Dist: platformdirs>=4.0.0,<5
18
18
  Requires-Dist: pillow>=12.1.1
19
- Requires-Dist: unique-sdk>=2026.48.0.dev1,<2026.48.0rc0
19
+ Requires-Dist: unique-sdk>=2026.48.0.dev2,<2026.48.0rc0
20
20
  Requires-Dist: jambo>=0.1.2,<0.2
21
21
  Requires-Dist: jinja2>=3.1.6,<4
22
22
  Requires-Dist: docxtpl>=0.20.1,<0.21
@@ -259,7 +259,8 @@ unique_toolkit/app/init_logging.py,sha256=3Rl-BY1cYyP-E-C5xcvUrbm5KqoXPBPl0lA9Sj
259
259
  unique_toolkit/app/init_sdk.py,sha256=5_oDoETr6akwYyBCb0ivTdMNu3SVgPSkrXcDS6ELyY8,2269
260
260
  unique_toolkit/app/performance/async_tasks.py,sha256=8Xv5kEmmFDJO7YyyBxv4e7bcNgq-3z_E2_4z1Yn9EqU,1970
261
261
  unique_toolkit/app/performance/async_wrapper.py,sha256=yVVcRDkcdyfjsxro-N29SBvi-7773wnfDplef6-y8xw,1077
262
- unique_toolkit/app/schemas.py,sha256=1OXs2408Zr8lcUHZZrcMR-z1nzAxFLyOWQ39DbmjB5c,18882
262
+ unique_toolkit/app/schemas.py,sha256=5mQrXb-CymUY4R2yw7I8oBl-OuG7w2S7XQE8MOxrz60,19041
263
+ unique_toolkit/app/ui_language.py,sha256=OKZ1VFE0f0VyqSsAHQ52aJMi1uOesROCPPt55rZOMIY,820
263
264
  unique_toolkit/app/unique_settings.py,sha256=dfqqh1Nv2JaqL3fePndmuRAfJcARzImdwSOO1J3KS1E,27318
264
265
  unique_toolkit/app/verification.py,sha256=GxFFwcJMy25fCA_Xe89wKW7bgqOu8PAs5y8QpHF0GSc,3861
265
266
  unique_toolkit/app/webhook.py,sha256=evpxLDnvz7P3D7-TV1XBkl8WcoldXpjOkw3tvFRxHr0,2368
@@ -434,6 +435,6 @@ unique_toolkit/short_term_memory/service.py,sha256=2JMBEBn6GoyK-a0xvdcWpPft-3C74
434
435
  unique_toolkit/smart_rules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
435
436
  unique_toolkit/smart_rules/compile.py,sha256=vRe0aMJWuVIK-VsqomgxQImzke7MDmwgSxxJfYCa7zw,1386
436
437
  unique_toolkit/test_utilities/events.py,sha256=FLrhMh0A_mQutAUjoD0FdMcVQ4Gq31r35OVGzRjvLro,6760
437
- unique_toolkit-2026.48.0.dev2.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
438
- unique_toolkit-2026.48.0.dev2.dist-info/METADATA,sha256=Vn0fpfBfCrpFLZnDFvdf-FaAnRWjEkbiUnNn0xacEZ0,7821
439
- unique_toolkit-2026.48.0.dev2.dist-info/RECORD,,
438
+ unique_toolkit-2026.48.0.dev4.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
439
+ unique_toolkit-2026.48.0.dev4.dist-info/METADATA,sha256=VwTC0uQEPmzg8FUtCJYdKMFwYYh5fjN5PAWm-NlHxHE,7821
440
+ unique_toolkit-2026.48.0.dev4.dist-info/RECORD,,