unique_toolkit 1.39.2__py3-none-any.whl → 1.40.0__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.
@@ -29,7 +29,7 @@ logger = logging.getLogger(__name__)
29
29
  class DisplayCodeInterpreterFilesPostProcessorConfig(BaseModel):
30
30
  model_config = get_configuration_dict()
31
31
  upload_to_chat: bool = Field(
32
- default=False,
32
+ default=True,
33
33
  description="Whether to upload the generated files to the chat.",
34
34
  )
35
35
  upload_scope_id: str = Field(
@@ -218,6 +218,7 @@ class DisplayCodeInterpreterFilesPostProcessor(
218
218
  content_name=container_file.filename,
219
219
  mime_type=guess_type(container_file.filename)[0] or "text/plain",
220
220
  skip_ingestion=True,
221
+ hide_in_chat=True,
221
222
  )
222
223
  else:
223
224
  content = await self._content_service.upload_content_from_bytes_async(
@@ -248,6 +248,7 @@ async def upload_content_from_bytes_async(
248
248
  skip_ingestion: bool = False,
249
249
  ingestion_config: unique_sdk.Content.IngestionConfig | None = None,
250
250
  metadata: dict[str, Any] | None = None,
251
+ hide_in_chat: bool = False,
251
252
  ) -> Content:
252
253
  """
253
254
  Asynchronously uploads content to the knowledge base.
@@ -280,6 +281,7 @@ async def upload_content_from_bytes_async(
280
281
  skip_ingestion=skip_ingestion,
281
282
  ingestion_config=ingestion_config,
282
283
  metadata=metadata,
284
+ hide_in_chat=hide_in_chat,
283
285
  )
284
286
  except Exception as e:
285
287
  logger.error(f"Error while uploading content: {e}")
@@ -297,6 +299,7 @@ def upload_content_from_bytes(
297
299
  skip_ingestion: bool = False,
298
300
  ingestion_config: unique_sdk.Content.IngestionConfig | None = None,
299
301
  metadata: dict[str, Any] | None = None,
302
+ hide_in_chat: bool = False,
300
303
  ) -> Content:
301
304
  """
302
305
  Uploads content to the knowledge base.
@@ -329,6 +332,7 @@ def upload_content_from_bytes(
329
332
  skip_ingestion=skip_ingestion,
330
333
  ingestion_config=ingestion_config,
331
334
  metadata=metadata,
335
+ hide_in_chat=hide_in_chat,
332
336
  )
333
337
  except Exception as e:
334
338
  logger.error(f"Error while uploading content: {e}")
@@ -399,6 +403,7 @@ def _trigger_upload_content(
399
403
  skip_excel_ingestion: bool = False,
400
404
  ingestion_config: unique_sdk.Content.IngestionConfig | None = None,
401
405
  metadata: dict[str, Any] | None = None,
406
+ hide_in_chat: bool = False,
402
407
  ) -> Content:
403
408
  """
404
409
  Uploads content to the knowledge base.
@@ -479,6 +484,9 @@ def _trigger_upload_content(
479
484
  elif skip_ingestion:
480
485
  ingestion_config["uniqueIngestionMode"] = "SKIP_INGESTION"
481
486
 
487
+ if hide_in_chat:
488
+ ingestion_config["hideInChat"] = True
489
+
482
490
  input_dict = {
483
491
  "key": content_name,
484
492
  "title": content_name,
@@ -520,6 +528,7 @@ async def _trigger_upload_content_async(
520
528
  skip_excel_ingestion: bool = False,
521
529
  ingestion_config: unique_sdk.Content.IngestionConfig | None = None,
522
530
  metadata: dict[str, Any] | None = None,
531
+ hide_in_chat: bool = False,
523
532
  ):
524
533
  """
525
534
  Asynchronously uploads content to the knowledge base.
@@ -603,6 +612,9 @@ async def _trigger_upload_content_async(
603
612
  elif skip_ingestion:
604
613
  ingestion_config["uniqueIngestionMode"] = "SKIP_INGESTION"
605
614
 
615
+ if hide_in_chat:
616
+ ingestion_config["hideInChat"] = True
617
+
606
618
  input_dict = {
607
619
  "key": content_name,
608
620
  "title": content_name,
@@ -1600,6 +1600,7 @@ class ChatService(ChatServiceDeprecated):
1600
1600
  mime_type: str,
1601
1601
  scope_id: str | None = None,
1602
1602
  skip_ingestion: bool = False,
1603
+ hide_in_chat: bool = False,
1603
1604
  ingestion_config: unique_sdk.Content.IngestionConfig | None = None,
1604
1605
  metadata: dict[str, Any] | None = None,
1605
1606
  ) -> Content:
@@ -1612,6 +1613,7 @@ class ChatService(ChatServiceDeprecated):
1612
1613
  scope_id=scope_id,
1613
1614
  chat_id=self._chat_id,
1614
1615
  skip_ingestion=skip_ingestion,
1616
+ hide_in_chat=hide_in_chat,
1615
1617
  ingestion_config=ingestion_config,
1616
1618
  metadata=metadata,
1617
1619
  )
@@ -1624,6 +1626,7 @@ class ChatService(ChatServiceDeprecated):
1624
1626
  mime_type: str,
1625
1627
  scope_id: str | None = None,
1626
1628
  skip_ingestion: bool = False,
1629
+ hide_in_chat: bool = False,
1627
1630
  ingestion_config: unique_sdk.Content.IngestionConfig | None = None,
1628
1631
  metadata: dict[str, Any] | None = None,
1629
1632
  ) -> Content:
@@ -1636,6 +1639,7 @@ class ChatService(ChatServiceDeprecated):
1636
1639
  scope_id=scope_id,
1637
1640
  chat_id=self._chat_id,
1638
1641
  skip_ingestion=skip_ingestion,
1642
+ hide_in_chat=hide_in_chat,
1639
1643
  ingestion_config=ingestion_config,
1640
1644
  metadata=metadata,
1641
1645
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unique_toolkit
3
- Version: 1.39.2
3
+ Version: 1.40.0
4
4
  Summary:
5
5
  License: Proprietary
6
6
  Author: Cedric Klinkert
@@ -27,7 +27,7 @@ Requires-Dist: regex (>=2024.5.15,<2025.0.0)
27
27
  Requires-Dist: sseclient (>=0.0.27,<0.0.28)
28
28
  Requires-Dist: tiktoken (>=0.12.0,<0.13.0)
29
29
  Requires-Dist: typing-extensions (>=4.9.0,<5.0.0)
30
- Requires-Dist: unique-sdk (>=0.10.58,<0.11.0)
30
+ Requires-Dist: unique-sdk (>=0.10.61,<0.11.0)
31
31
  Description-Content-Type: text/markdown
32
32
 
33
33
  # Unique Toolkit
@@ -123,6 +123,11 @@ All notable changes to this project will be documented in this file.
123
123
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
124
124
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
125
125
 
126
+ ## [1.40.0] - 2025-12-22
127
+ - Add `hide_in_chat` parameter to `upload_to_chat_from_bytes` and `upload_to_chat_from_bytes_async`
128
+ - Hide code interpreter files in chat
129
+ - Code Interpreter files are now uploaded to chat by default
130
+
126
131
  ## [1.39.2] - 2025-12-18
127
132
  - Add `litellm:gemini-3-flash-preview`, `litellm:openai-gpt-5-2` and `litellm:openai-gpt-5-2-thinking` to `language_model/info.py`
128
133
 
@@ -82,7 +82,7 @@ unique_toolkit/agentic/postprocessor/postprocessor_manager.py,sha256=CoKzVFeLIr1
82
82
  unique_toolkit/agentic/reference_manager/reference_manager.py,sha256=x51CT0D8HHu2LzgXdHGy0leOYpjnsxVbPZ2nc28G9mA,4005
83
83
  unique_toolkit/agentic/responses_api/__init__.py,sha256=9WTO-ef7fGE9Y1QtZJFm8Q_jkwK8Srtl-HWvpAD2Wxs,668
84
84
  unique_toolkit/agentic/responses_api/postprocessors/code_display.py,sha256=h6ZqPR0kPQnxM0ynshYQTa1BrcN8XGbUz9p03m8rOj0,2339
85
- unique_toolkit/agentic/responses_api/postprocessors/generated_files.py,sha256=Bywzf0SVwdzvWbNJbsMU4T43IclIqlUO_adCo7xaU7U,11689
85
+ unique_toolkit/agentic/responses_api/postprocessors/generated_files.py,sha256=JWJGxxCfIrBGyf45ic50MwFN4AqOhYSuNFrPXrIhPWI,11727
86
86
  unique_toolkit/agentic/responses_api/stream_handler.py,sha256=Y1IM0uiPBdlab5UuOTCsHTaVX-fd9MxfS3xkwhdFie4,647
87
87
  unique_toolkit/agentic/short_term_memory_manager/persistent_short_term_memory_manager.py,sha256=g8I64dKkpwWIXfwpxD1-rLte00hh_PoQ9-fXUAcNQCo,5817
88
88
  unique_toolkit/agentic/thinking_manager/thinking_manager.py,sha256=41QWFsdRrbWlQHBfYCFv726UDom4WbcvaRfjCmoUOQI,4183
@@ -160,7 +160,7 @@ unique_toolkit/chat/state.py,sha256=Cjgwv_2vhDFbV69xxsn7SefhaoIAEqLx3ferdVFCnOg,
160
160
  unique_toolkit/chat/utils.py,sha256=ihm-wQykBWhB4liR3LnwPVPt_qGW6ETq21Mw4HY0THE,854
161
161
  unique_toolkit/content/__init__.py,sha256=EdJg_A_7loEtCQf4cah3QARQreJx6pdz89Rm96YbMVg,940
162
162
  unique_toolkit/content/constants.py,sha256=1iy4Y67xobl5VTnJB6SxSyuoBWbdLl9244xfVMUZi5o,60
163
- unique_toolkit/content/functions.py,sha256=6QIgPTShF7VF9N55Np5vIlNibbDgPDfJr4-IBaRu6n8,28830
163
+ unique_toolkit/content/functions.py,sha256=cYbILIufzX1btSPiEAglH4cd2eI5MfHoZmaUBfiWsDc,29172
164
164
  unique_toolkit/content/schemas.py,sha256=uuS1UsuWK6eC7cP4dTC1q3DJ39xl6zenN2zL4ghFmzk,6424
165
165
  unique_toolkit/content/service.py,sha256=hwycIbxtLn1p0IgNQMVIxN2NUhy_4AVsTfatytGi-gY,24919
166
166
  unique_toolkit/content/smart_rules.py,sha256=z2gHToPrdyj3HqO8Uu-JE5G2ClvJPuhR2XERmmkgoug,9668
@@ -202,7 +202,7 @@ unique_toolkit/language_model/service.py,sha256=fI2S5JLawJRRkKg086Ysz2Of4AOBHPN-
202
202
  unique_toolkit/language_model/utils.py,sha256=bPQ4l6_YO71w-zaIPanUUmtbXC1_hCvLK0tAFc3VCRc,1902
203
203
  unique_toolkit/protocols/support.py,sha256=ZEnbQL5w2-T_1AeM8OHycZJ3qbdfVI1nXe0nL9esQEw,5544
204
204
  unique_toolkit/services/__init__.py,sha256=90-IT5FjMcnlqxjp5kme9Fqgp_on46rggctIqHMdqsw,195
205
- unique_toolkit/services/chat_service.py,sha256=EdeHseyBXBtXWx2gK5jXoGWBYjG6uyoLusQpGH8I6x0,73065
205
+ unique_toolkit/services/chat_service.py,sha256=xX05MrihNrCsLrVyd5Ez1JBxMS3c3I_wx8Oari3U8h0,73215
206
206
  unique_toolkit/services/knowledge_base.py,sha256=uc89GL_NZXeFkJKkdHSSh2y1Wx0tmgasWk6uyGi4G_M,36210
207
207
  unique_toolkit/short_term_memory/__init__.py,sha256=2mI3AUrffgH7Yt-xS57EGqnHf7jnn6xquoKEhJqk3Wg,185
208
208
  unique_toolkit/short_term_memory/constants.py,sha256=698CL6-wjup2MvU19RxSmQk3gX7aqW_OOpZB7sbz_Xg,34
@@ -212,7 +212,7 @@ unique_toolkit/short_term_memory/service.py,sha256=5PeVBu1ZCAfyDb2HLVvlmqSbyzBBu
212
212
  unique_toolkit/smart_rules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
213
213
  unique_toolkit/smart_rules/compile.py,sha256=Ozhh70qCn2yOzRWr9d8WmJeTo7AQurwd3tStgBMPFLA,1246
214
214
  unique_toolkit/test_utilities/events.py,sha256=_mwV2bs5iLjxS1ynDCjaIq-gjjKhXYCK-iy3dRfvO3g,6410
215
- unique_toolkit-1.39.2.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
216
- unique_toolkit-1.39.2.dist-info/METADATA,sha256=5i_0jJRn-2014qhIdULsZ2EZHAM9KUal7jjJUqis28s,46105
217
- unique_toolkit-1.39.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
218
- unique_toolkit-1.39.2.dist-info/RECORD,,
215
+ unique_toolkit-1.40.0.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
216
+ unique_toolkit-1.40.0.dist-info/METADATA,sha256=iEwBy-tYmByLek8I9T4Eck-LCO5eDQKtk8fkAgnhS-g,46331
217
+ unique_toolkit-1.40.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
218
+ unique_toolkit-1.40.0.dist-info/RECORD,,