unique_toolkit 2026.48.0.dev16__py3-none-any.whl → 2026.48.0.dev18__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/tool/config.py +24 -4
- {unique_toolkit-2026.48.0.dev16.dist-info → unique_toolkit-2026.48.0.dev18.dist-info}/METADATA +3 -3
- {unique_toolkit-2026.48.0.dev16.dist-info → unique_toolkit-2026.48.0.dev18.dist-info}/RECORD +4 -4
- {unique_toolkit-2026.48.0.dev16.dist-info → unique_toolkit-2026.48.0.dev18.dist-info}/WHEEL +0 -0
|
@@ -49,7 +49,20 @@ which file failed and why, using the reason given below:
|
|
|
49
49
|
{% endif %}
|
|
50
50
|
""".strip()
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
# Shared by both default prompts. Assumes the hosted container ships reportlab,
|
|
53
|
+
# matplotlib's DejaVu fonts and pdfplumber (checked on one live container, 2026-11);
|
|
54
|
+
# if an image drops one, the model's PDF code fails rather than this config.
|
|
55
|
+
_PDF_FILE_RULES = """
|
|
56
|
+
PDF files: CRITICAL rules when you write a new text document as a PDF (report, summary, letter); text MUST wrap and stay on the page:
|
|
57
|
+
- Build it with reportlab Platypus: `SimpleDocTemplate(path, pagesize=A4)` with `Paragraph`, `Spacer`, `Table` and `ListFlowable`, so every line wraps inside the page margins.
|
|
58
|
+
- NEVER write its running text with `canvas.drawString`, canvas text objects or `Preformatted`: they do not wrap, so long lines run off the page and are cut off. (Canvas is fine for charts and for stamping, annotating or filling an existing PDF.)
|
|
59
|
+
- Turn Markdown into real formatting: headings into heading styles, `**x**` into `<b>x</b>`, links into `<a href="url">text</a>`, bullets into `ListFlowable(items, bulletType="bullet", start="•")` (`start="bullet"` prints the word "bullet"), tables into a `Table` of `Paragraph` cells whose `colWidths` sum to `doc.width - 12` (the frame's padding). Escape `&`, `<` and `>` in the text first, then add the tags.
|
|
60
|
+
- For Latin, Greek and Cyrillic text use a TrueType font, as built-in Helvetica draws many accented, Greek and Cyrillic letters as black boxes: register `DejaVuSans.ttf` and `DejaVuSans-Bold.ttf` from `Path(matplotlib.get_data_path()) / "fonts" / "ttf"` and call `registerFontFamily` so `<b>` works.
|
|
61
|
+
- Before referencing the PDF, check it in code: open it with `pdfplumber` and assert every word's `x1` is at most `page.width`; if not, fix the build and save it again.
|
|
62
|
+
"""
|
|
63
|
+
|
|
64
|
+
_TOOL_DESCRIPTION_FOR_SYSTEM_PROMPT_BASE = (
|
|
65
|
+
"""
|
|
53
66
|
Use this tool to run python code, e.g to generate plots, process excel files, perform calculations, etc.
|
|
54
67
|
|
|
55
68
|
Instructions:
|
|
@@ -73,7 +86,9 @@ Always use a line break between the title and the markdown!
|
|
|
73
86
|
- YOU MUST use the syntax above to display images, otherwise the image will not be displayed in the chat.
|
|
74
87
|
- Only the following file types are allowed to be uploaded to the platform, anything else will FAIL: PDF, DOCX, XLSX, PPTX, CSV, HTML, MD, TXT, PNG, JPG, JPEG.
|
|
75
88
|
- You MUST always use this syntax, otherwise the files will not be displayed in the chat.
|
|
76
|
-
|
|
89
|
+
"""
|
|
90
|
+
+ _PDF_FILE_RULES
|
|
91
|
+
+ """
|
|
77
92
|
# Displaying Dataframes/Tables:
|
|
78
93
|
- Whenever asked to display a dataframe/table, it is CRITICAL to represent it faithfully as a markdown table in your response.
|
|
79
94
|
|
|
@@ -91,6 +106,7 @@ Handling User Queries:
|
|
|
91
106
|
- If a tool step fails, you must recover as much as possible.
|
|
92
107
|
- After exhausting all possible solutions without success, inform the user of what was tried and request clarification/help.
|
|
93
108
|
"""
|
|
109
|
+
)
|
|
94
110
|
|
|
95
111
|
DEFAULT_TOOL_DESCRIPTION_FOR_SYSTEM_PROMPT = (
|
|
96
112
|
_TOOL_DESCRIPTION_FOR_SYSTEM_PROMPT_BASE + _TOOL_DESCRIPTION_FILES_SUFFIX
|
|
@@ -107,7 +123,8 @@ DEFAULT_TOOL_DESCRIPTION_FOR_SYSTEM_PROMPT = (
|
|
|
107
123
|
# UN-19880: kaleido is not installed in the Azure OpenAI code interpreter environment,
|
|
108
124
|
# so plotly's fig.write_image() always fails. The "Visualization library choice" section
|
|
109
125
|
# steers the model to use matplotlib for PNG outputs and plotly only for HTML artifacts.
|
|
110
|
-
_TOOL_DESCRIPTION_FOR_SYSTEM_PROMPT_FENCE_BASE =
|
|
126
|
+
_TOOL_DESCRIPTION_FOR_SYSTEM_PROMPT_FENCE_BASE = (
|
|
127
|
+
"""
|
|
111
128
|
Use this tool to run python code, e.g to generate plots, process excel files, perform calculations, etc.
|
|
112
129
|
|
|
113
130
|
Instructions:
|
|
@@ -162,7 +179,9 @@ HTML files — CRITICAL rules:
|
|
|
162
179
|
- Apply clean, readable typography: prefer system fonts (`-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif`) and sufficient contrast (WCAG AA minimum).
|
|
163
180
|
- Use semantic HTML elements (`<table>` for tabular data, `<button>` for actions, `<h1>`–`<h6>` for headings, `alt` attributes on `<img>` tags). Avoid using `<div>` for everything.
|
|
164
181
|
- Do NOT use `window.parent`, `window.top`, or any attempt to access the parent frame.
|
|
165
|
-
|
|
182
|
+
"""
|
|
183
|
+
+ _PDF_FILE_RULES
|
|
184
|
+
+ """
|
|
166
185
|
|
|
167
186
|
# Displaying Dataframes/Tables:
|
|
168
187
|
- Whenever asked to display a dataframe/table, it is CRITICAL to represent it faithfully as a markdown table in your response.
|
|
@@ -183,6 +202,7 @@ Handling User Queries:
|
|
|
183
202
|
- If a tool step fails, you must recover as much as possible.
|
|
184
203
|
- After exhausting all possible solutions without success, inform the user of what was tried and request clarification/help.
|
|
185
204
|
"""
|
|
205
|
+
)
|
|
186
206
|
|
|
187
207
|
DEFAULT_TOOL_DESCRIPTION_FOR_SYSTEM_PROMPT_FENCE = (
|
|
188
208
|
_TOOL_DESCRIPTION_FOR_SYSTEM_PROMPT_FENCE_BASE + _TOOL_DESCRIPTION_FILES_SUFFIX
|
{unique_toolkit-2026.48.0.dev16.dist-info → unique_toolkit-2026.48.0.dev18.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: unique-toolkit
|
|
3
|
-
Version: 2026.48.0.
|
|
3
|
+
Version: 2026.48.0.dev18
|
|
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>=13.0.0
|
|
19
|
-
Requires-Dist: unique-sdk>=2026.48.0.
|
|
19
|
+
Requires-Dist: unique-sdk>=2026.48.0.dev17,<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
|
|
@@ -35,7 +35,7 @@ Requires-Dist: cachetools>=5.0,<6
|
|
|
35
35
|
Requires-Dist: rapidfuzz>=3.0,<4
|
|
36
36
|
Requires-Dist: pyyaml>=6.0.3
|
|
37
37
|
Requires-Dist: asyncpg>=0.30,<1 ; extra == 'activity-records'
|
|
38
|
-
Requires-Dist: unique-toolkit[monitoring]>=2026.48.0.
|
|
38
|
+
Requires-Dist: unique-toolkit[monitoring]>=2026.48.0.dev18,<2026.48.0rc0 ; extra == 'activity-records'
|
|
39
39
|
Requires-Dist: fastapi>=0.133.0,<1.0.0 ; extra == 'fastapi'
|
|
40
40
|
Requires-Dist: starlette>=1.3.1,<2.0.0 ; extra == 'fastapi'
|
|
41
41
|
Requires-Dist: uvicorn>=0.37.0,<0.38 ; extra == 'fastapi'
|
{unique_toolkit-2026.48.0.dev16.dist-info → unique_toolkit-2026.48.0.dev18.dist-info}/RECORD
RENAMED
|
@@ -230,7 +230,7 @@ unique_toolkit/agentic/tools/openai_builtin/code_interpreter/postprocessors/gene
|
|
|
230
230
|
unique_toolkit/agentic/tools/openai_builtin/code_interpreter/postprocessors/office_preview.py,sha256=2-u9NlNRyQ7PC5b6vW_5CypzVbfNUWRd9DAbCSKE4qk,5099
|
|
231
231
|
unique_toolkit/agentic/tools/openai_builtin/code_interpreter/schemas.py,sha256=4JDJ2SuKTYcLFo_bYoDWKTgjlcO20mid203NVpJ1jm4,779
|
|
232
232
|
unique_toolkit/agentic/tools/openai_builtin/code_interpreter/tool/__init__.py,sha256=r6yXmGTLJzXNq5laHOlre9veu--VbCQVlDRVm2QUGzI,326
|
|
233
|
-
unique_toolkit/agentic/tools/openai_builtin/code_interpreter/tool/config.py,sha256=
|
|
233
|
+
unique_toolkit/agentic/tools/openai_builtin/code_interpreter/tool/config.py,sha256=tlDT6iJUbZCLgWnDd8cxQT3iHbqELPUgrfdIqG9UYBw,21801
|
|
234
234
|
unique_toolkit/agentic/tools/openai_builtin/code_interpreter/tool/service.py,sha256=opbNxT-COtJcszlXL41AnAaHfUKfR7hQw6Us3QK2Cgk,3698
|
|
235
235
|
unique_toolkit/agentic/tools/openai_builtin/manager.py,sha256=nWgH38k5v-pi9DadmpHJxfHkJLuVei8YIbFiZo7XSZ0,4187
|
|
236
236
|
unique_toolkit/agentic/tools/run_context.py,sha256=lk9tS1wn97NcSByNZpJWunnnZTos9H2SsxUkKKAvW_A,783
|
|
@@ -447,6 +447,6 @@ unique_toolkit/short_term_memory/service.py,sha256=2JMBEBn6GoyK-a0xvdcWpPft-3C74
|
|
|
447
447
|
unique_toolkit/smart_rules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
448
448
|
unique_toolkit/smart_rules/compile.py,sha256=vRe0aMJWuVIK-VsqomgxQImzke7MDmwgSxxJfYCa7zw,1386
|
|
449
449
|
unique_toolkit/test_utilities/events.py,sha256=FLrhMh0A_mQutAUjoD0FdMcVQ4Gq31r35OVGzRjvLro,6760
|
|
450
|
-
unique_toolkit-2026.48.0.
|
|
451
|
-
unique_toolkit-2026.48.0.
|
|
452
|
-
unique_toolkit-2026.48.0.
|
|
450
|
+
unique_toolkit-2026.48.0.dev18.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
|
|
451
|
+
unique_toolkit-2026.48.0.dev18.dist-info/METADATA,sha256=7WwS2s1VmOeKhWhEbIZYhcw1NgsLwBpZuXeLJAr7eOs,8021
|
|
452
|
+
unique_toolkit-2026.48.0.dev18.dist-info/RECORD,,
|
|
File without changes
|