unique_toolkit 1.19.2__py3-none-any.whl → 1.19.3__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.
Potentially problematic release.
This version of unique_toolkit might be problematic. Click here for more details.
- unique_toolkit/chat/rendering.py +34 -0
- {unique_toolkit-1.19.2.dist-info → unique_toolkit-1.19.3.dist-info}/METADATA +6 -1
- {unique_toolkit-1.19.2.dist-info → unique_toolkit-1.19.3.dist-info}/RECORD +5 -4
- {unique_toolkit-1.19.2.dist-info → unique_toolkit-1.19.3.dist-info}/LICENSE +0 -0
- {unique_toolkit-1.19.2.dist-info → unique_toolkit-1.19.3.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
from urllib.parse import quote
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
def create_prompt_button_string(
|
|
5
|
+
*,
|
|
6
|
+
button_text: str,
|
|
7
|
+
next_user_message: str,
|
|
8
|
+
) -> str:
|
|
9
|
+
"""
|
|
10
|
+
Create a prompt button string.
|
|
11
|
+
|
|
12
|
+
Args:
|
|
13
|
+
button_text: The text of the button.
|
|
14
|
+
next_user_message: The message to send when the button is clicked.
|
|
15
|
+
|
|
16
|
+
Returns:
|
|
17
|
+
A string that can be used to create a prompt button.
|
|
18
|
+
A prompt button includes the `next_user_message` to the user prompt windown.
|
|
19
|
+
"""
|
|
20
|
+
next_user_message = quote(next_user_message)
|
|
21
|
+
return f"[{button_text}](https://prompt={next_user_message})"
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def create_latex_formula_string(latex_expression: str) -> str:
|
|
25
|
+
"""
|
|
26
|
+
Create a LaTeX string.
|
|
27
|
+
|
|
28
|
+
Args:
|
|
29
|
+
latex_expression: The LaTeX expression to create.
|
|
30
|
+
|
|
31
|
+
Returns:
|
|
32
|
+
A string that can be used to create a LaTeX string.
|
|
33
|
+
"""
|
|
34
|
+
return f"\\[{latex_expression}\\]"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: unique_toolkit
|
|
3
|
-
Version: 1.19.
|
|
3
|
+
Version: 1.19.3
|
|
4
4
|
Summary:
|
|
5
5
|
License: Proprietary
|
|
6
6
|
Author: Cedric Klinkert
|
|
@@ -118,6 +118,11 @@ All notable changes to this project will be documented in this file.
|
|
|
118
118
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
119
119
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
120
120
|
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
## [1.19.3] - 2025-10-29
|
|
124
|
+
- More documentation on advanced rendering
|
|
125
|
+
|
|
121
126
|
## [1.19.2] - 2025-10-29
|
|
122
127
|
- Removing unused tool specific `get_tool_call_result_for_loop_history` function
|
|
123
128
|
- Removing unused experimental config `full_sources_serialize_dump` in `history_manager`
|
|
@@ -117,6 +117,7 @@ unique_toolkit/chat/__init__.py,sha256=uP7P6YPeOjEOvpX3bhcU6ND_m0QLr4wMklcrnAKK0
|
|
|
117
117
|
unique_toolkit/chat/constants.py,sha256=05kq6zjqUVB2d6_P7s-90nbljpB3ryxwCI-CAz0r2O4,83
|
|
118
118
|
unique_toolkit/chat/deprecated/service.py,sha256=CYwzXi7OB0RjHd73CO2jq8SlpdBmDYLatzPFkb5sA0k,6529
|
|
119
119
|
unique_toolkit/chat/functions.py,sha256=1KQmqS5g3OgX8MJJmeL-_Cv4M6uJ3e0BCqkLDHl26dA,45580
|
|
120
|
+
unique_toolkit/chat/rendering.py,sha256=c8YiV9oADRrJQ5A_QBJ4_UFc0NZ-2vVaa7tupoMusso,880
|
|
120
121
|
unique_toolkit/chat/responses_api.py,sha256=MCI1MR_4wlo9xY1ifH2daNz4JvjX18uPdryQlemaeLw,14488
|
|
121
122
|
unique_toolkit/chat/schemas.py,sha256=u3WPdMkOlmwPGHUueQC-nk8k-QkM7ZSUcU0f-32g6Uc,6718
|
|
122
123
|
unique_toolkit/chat/service.py,sha256=6D00OL4QrGafbOhTaC5zNXaNgg7gS5W_2ePVa4LhqpE,4439
|
|
@@ -165,7 +166,7 @@ unique_toolkit/short_term_memory/service.py,sha256=5PeVBu1ZCAfyDb2HLVvlmqSbyzBBu
|
|
|
165
166
|
unique_toolkit/smart_rules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
166
167
|
unique_toolkit/smart_rules/compile.py,sha256=Ozhh70qCn2yOzRWr9d8WmJeTo7AQurwd3tStgBMPFLA,1246
|
|
167
168
|
unique_toolkit/test_utilities/events.py,sha256=_mwV2bs5iLjxS1ynDCjaIq-gjjKhXYCK-iy3dRfvO3g,6410
|
|
168
|
-
unique_toolkit-1.19.
|
|
169
|
-
unique_toolkit-1.19.
|
|
170
|
-
unique_toolkit-1.19.
|
|
171
|
-
unique_toolkit-1.19.
|
|
169
|
+
unique_toolkit-1.19.3.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
|
|
170
|
+
unique_toolkit-1.19.3.dist-info/METADATA,sha256=kcF3i4FpSU1Dnp8OTmkjqWtIw6uyIwMZukexyeyvjcU,39142
|
|
171
|
+
unique_toolkit-1.19.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
172
|
+
unique_toolkit-1.19.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|