unique_toolkit 2026.26.0.dev10__py3-none-any.whl → 2026.26.0.dev12__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.
- unique_toolkit/agentic/tools/openai_builtin/code_interpreter/service.py +3 -3
- unique_toolkit/content/functions.py +5 -3
- {unique_toolkit-2026.26.0.dev10.dist-info → unique_toolkit-2026.26.0.dev12.dist-info}/METADATA +2 -2
- {unique_toolkit-2026.26.0.dev10.dist-info → unique_toolkit-2026.26.0.dev12.dist-info}/RECORD +5 -5
- {unique_toolkit-2026.26.0.dev10.dist-info → unique_toolkit-2026.26.0.dev12.dist-info}/WHEEL +0 -0
|
@@ -7,7 +7,6 @@ from typing import Any, override
|
|
|
7
7
|
from openai import (
|
|
8
8
|
AsyncOpenAI,
|
|
9
9
|
BaseModel,
|
|
10
|
-
NotFoundError,
|
|
11
10
|
)
|
|
12
11
|
from openai.types.responses import ResponseCodeInterpreterToolCall, ResponseIncludable
|
|
13
12
|
from openai.types.responses.tool_param import CodeInterpreter
|
|
@@ -102,8 +101,9 @@ async def _check_container_exists(
|
|
|
102
101
|
) -> bool:
|
|
103
102
|
try:
|
|
104
103
|
container = await client.containers.retrieve(memory.container_id)
|
|
105
|
-
|
|
106
|
-
|
|
104
|
+
# The error here is sometimes InternalServerError, and sometimes a NotFoundError. We catch everything and re-create on exception
|
|
105
|
+
except Exception:
|
|
106
|
+
logger.exception("Container %s not found", memory.container_id)
|
|
107
107
|
return False
|
|
108
108
|
|
|
109
109
|
if container.status not in ["active", "running"]:
|
|
@@ -681,13 +681,15 @@ def request_content_by_id(
|
|
|
681
681
|
url = f"{url}?chatId={chat_id}"
|
|
682
682
|
|
|
683
683
|
# Download the file and save it to the random directory
|
|
684
|
-
headers = {
|
|
684
|
+
headers: dict[str, str] = {
|
|
685
685
|
"x-api-version": unique_sdk.api_version,
|
|
686
|
-
"x-app-id": unique_sdk.app_id,
|
|
687
686
|
"x-user-id": user_id,
|
|
688
687
|
"x-company-id": company_id,
|
|
689
|
-
"Authorization": "Bearer %s" % (unique_sdk.api_key,),
|
|
690
688
|
}
|
|
689
|
+
if unique_sdk.app_id:
|
|
690
|
+
headers["x-app-id"] = unique_sdk.app_id
|
|
691
|
+
if unique_sdk.api_key:
|
|
692
|
+
headers["Authorization"] = "Bearer %s" % (unique_sdk.api_key,)
|
|
691
693
|
|
|
692
694
|
return requests.get(url, headers=headers)
|
|
693
695
|
|
{unique_toolkit-2026.26.0.dev10.dist-info → unique_toolkit-2026.26.0.dev12.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: unique-toolkit
|
|
3
|
-
Version: 2026.26.0.
|
|
3
|
+
Version: 2026.26.0.dev12
|
|
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.26.0.
|
|
19
|
+
Requires-Dist: unique-sdk>=2026.26.0.dev17,<2026.26.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
|
{unique_toolkit-2026.26.0.dev10.dist-info → unique_toolkit-2026.26.0.dev12.dist-info}/RECORD
RENAMED
|
@@ -207,7 +207,7 @@ unique_toolkit/agentic/tools/openai_builtin/code_interpreter/postprocessors/arti
|
|
|
207
207
|
unique_toolkit/agentic/tools/openai_builtin/code_interpreter/postprocessors/code_display.py,sha256=Q4crOkYG-C_uTSc7rW14cP1H4IWxsKpfuftafDHbjEo,2897
|
|
208
208
|
unique_toolkit/agentic/tools/openai_builtin/code_interpreter/postprocessors/generated_files.py,sha256=5wkR2GUUisNedkeYJYiS3Tvn-kB6obJmzxgCfo96oEg,59618
|
|
209
209
|
unique_toolkit/agentic/tools/openai_builtin/code_interpreter/schemas.py,sha256=W7egCmYrPrzic0aXsu9wY5fvQ8y_cl4Tzq_cjVs0mZs,542
|
|
210
|
-
unique_toolkit/agentic/tools/openai_builtin/code_interpreter/service.py,sha256=
|
|
210
|
+
unique_toolkit/agentic/tools/openai_builtin/code_interpreter/service.py,sha256=k10VBHL2vVlEylNF3EWGvm8_wZ_44K1pJ5ngGirUzOA,14275
|
|
211
211
|
unique_toolkit/agentic/tools/openai_builtin/manager.py,sha256=CkfMRsjrRDv_X-zfJHZnxxOdpCK1qzf6RGGxKtUHp9k,3519
|
|
212
212
|
unique_toolkit/agentic/tools/schemas.py,sha256=4BTJ0q7fiAVQ2Uy9kVJnS0rcKeKKaYTkOFq8XGZwMJ0,5291
|
|
213
213
|
unique_toolkit/agentic/tools/test/test_mcp_manager.py,sha256=uWrTmnenQ70s5hrTfMYVah2vDT-jZq4nQmvhutypEK8,19195
|
|
@@ -250,7 +250,7 @@ unique_toolkit/chat/state.py,sha256=Cjgwv_2vhDFbV69xxsn7SefhaoIAEqLx3ferdVFCnOg,
|
|
|
250
250
|
unique_toolkit/chat/utils.py,sha256=CsD9IER2gA1IOV0fmUOl-N0LmKvA7JP9dGrOqeOY0Gg,1173
|
|
251
251
|
unique_toolkit/content/__init__.py,sha256=nnQDfnNTEvI8-3dgWvIojoFDYU7edwd8Kloi6lMDG0M,1586
|
|
252
252
|
unique_toolkit/content/constants.py,sha256=1iy4Y67xobl5VTnJB6SxSyuoBWbdLl9244xfVMUZi5o,60
|
|
253
|
-
unique_toolkit/content/functions.py,sha256=
|
|
253
|
+
unique_toolkit/content/functions.py,sha256=avnlEQ1FkVz2NTbXUkafU04jzygqOJtUMQL605rEL4c,34019
|
|
254
254
|
unique_toolkit/content/schemas.py,sha256=iBorQu7OM9d1gNwky1oJv7krsAqbTst2_TrE7cQH0GA,10290
|
|
255
255
|
unique_toolkit/content/service.py,sha256=fR93_76aPczx2voxR7cvYDs_-pxD-Mc9WP6-5IqA8ko,28301
|
|
256
256
|
unique_toolkit/content/smart_rules.py,sha256=9GlHXm63POTi4jy5hW0qUjeqy-JSeL1wIbURM1GKhc4,11481
|
|
@@ -399,6 +399,6 @@ unique_toolkit/short_term_memory/service.py,sha256=Qo-c9yxzC1ZEEHJyIG_vnRs_ef0SK
|
|
|
399
399
|
unique_toolkit/smart_rules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
400
400
|
unique_toolkit/smart_rules/compile.py,sha256=vRe0aMJWuVIK-VsqomgxQImzke7MDmwgSxxJfYCa7zw,1386
|
|
401
401
|
unique_toolkit/test_utilities/events.py,sha256=FLrhMh0A_mQutAUjoD0FdMcVQ4Gq31r35OVGzRjvLro,6760
|
|
402
|
-
unique_toolkit-2026.26.0.
|
|
403
|
-
unique_toolkit-2026.26.0.
|
|
404
|
-
unique_toolkit-2026.26.0.
|
|
402
|
+
unique_toolkit-2026.26.0.dev12.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
|
|
403
|
+
unique_toolkit-2026.26.0.dev12.dist-info/METADATA,sha256=_FunqCQItHSMzy8Sj8iVnWCFeEEIdvUta5-lNhKQUeY,7428
|
|
404
|
+
unique_toolkit-2026.26.0.dev12.dist-info/RECORD,,
|
|
File without changes
|