sunholo 0.99.4__py3-none-any.whl → 0.99.6__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.
- sunholo/genai/process_funcs_cls.py +6 -2
- {sunholo-0.99.4.dist-info → sunholo-0.99.6.dist-info}/METADATA +2 -2
- {sunholo-0.99.4.dist-info → sunholo-0.99.6.dist-info}/RECORD +7 -7
- {sunholo-0.99.4.dist-info → sunholo-0.99.6.dist-info}/LICENSE.txt +0 -0
- {sunholo-0.99.4.dist-info → sunholo-0.99.6.dist-info}/WHEEL +0 -0
- {sunholo-0.99.4.dist-info → sunholo-0.99.6.dist-info}/entry_points.txt +0 -0
- {sunholo-0.99.4.dist-info → sunholo-0.99.6.dist-info}/top_level.txt +0 -0
|
@@ -482,16 +482,20 @@ class GenAIFunctionProcessor:
|
|
|
482
482
|
token = f"--- {fn_log} result --- \n"
|
|
483
483
|
# if json dict we look for keys to extract
|
|
484
484
|
if fn_result_json:
|
|
485
|
+
log.info(f"{fn_result_json} dict parsing")
|
|
485
486
|
if fn_result_json.get('stdout'):
|
|
486
487
|
text = fn_result_json.get('stdout').encode('utf-8').decode('unicode_escape')
|
|
487
488
|
token += text
|
|
488
489
|
if fn_result_json.get('stderr'):
|
|
489
490
|
text = fn_result_json.get('stdout').encode('utf-8').decode('unicode_escape')
|
|
490
491
|
token += text
|
|
491
|
-
|
|
492
|
-
|
|
492
|
+
# If neither 'stdout' nor 'stderr' is present, dump the entire JSON
|
|
493
|
+
if 'stdout' not in fn_result_json and 'stderr' not in fn_result_json:
|
|
494
|
+
log.info(f"No recognised keys ('stdout' or 'stderr') in dict: {fn_result_json=} - dumping it all")
|
|
495
|
+
token += f"{json.dumps(fn_result_json, indent=2)}\n" # Added `indent=2` for readability
|
|
493
496
|
else:
|
|
494
497
|
# probably a string, just return it
|
|
498
|
+
log.info(f"{fn_result_json} non-dict (String?) parsing")
|
|
495
499
|
token += f"{fn_result}\n--- end ---\n"
|
|
496
500
|
|
|
497
501
|
this_text += token
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sunholo
|
|
3
|
-
Version: 0.99.
|
|
3
|
+
Version: 0.99.6
|
|
4
4
|
Summary: Large Language Model DevOps - a package to help deploy LLMs to the Cloud.
|
|
5
5
|
Home-page: https://github.com/sunholo-data/sunholo-py
|
|
6
|
-
Download-URL: https://github.com/sunholo-data/sunholo-py/archive/refs/tags/v0.99.
|
|
6
|
+
Download-URL: https://github.com/sunholo-data/sunholo-py/archive/refs/tags/v0.99.6.tar.gz
|
|
7
7
|
Author: Holosun ApS
|
|
8
8
|
Author-email: multivac@sunholo.com
|
|
9
9
|
License: Apache License, Version 2.0
|
|
@@ -86,7 +86,7 @@ sunholo/gcs/download_url.py,sha256=q1NiJSvEhdNrmU5ZJ-sBCMC_J5CxzrajY8LRgdPOV_M,6
|
|
|
86
86
|
sunholo/gcs/metadata.py,sha256=oQLcXi4brsZ74aegWyC1JZmhlaEV270HS5_UWtAYYWE,898
|
|
87
87
|
sunholo/genai/__init__.py,sha256=dBl6IA3-Fx6-Vx81r0XqxHlUq6WeW1iDX188dpChu8s,115
|
|
88
88
|
sunholo/genai/init.py,sha256=yG8E67TduFCTQPELo83OJuWfjwTnGZsyACospahyEaY,687
|
|
89
|
-
sunholo/genai/process_funcs_cls.py,sha256=
|
|
89
|
+
sunholo/genai/process_funcs_cls.py,sha256=qBcwFE59QzX1ngZB0-5ajjz3LOsvgBeG5_wCk1mWTh8,25309
|
|
90
90
|
sunholo/genai/safety.py,sha256=mkFDO_BeEgiKjQd9o2I4UxB6XI7a9U-oOFjZ8LGRUC4,1238
|
|
91
91
|
sunholo/invoke/__init__.py,sha256=o1RhwBGOtVK0MIdD55fAIMCkJsxTksi8GD5uoqVKI-8,184
|
|
92
92
|
sunholo/invoke/async_class.py,sha256=uvCP8ekUCfTRWk7xwofTzRqFykMAwrRZ4Ce_YUR6PVs,2820
|
|
@@ -144,9 +144,9 @@ sunholo/vertex/init.py,sha256=1OQwcPBKZYBTDPdyU7IM4X4OmiXLdsNV30C-fee2scQ,2875
|
|
|
144
144
|
sunholo/vertex/memory_tools.py,sha256=tBZxqVZ4InTmdBvLlOYwoSEWu4-kGquc-gxDwZCC4FA,7667
|
|
145
145
|
sunholo/vertex/safety.py,sha256=S9PgQT1O_BQAkcqauWncRJaydiP8Q_Jzmu9gxYfy1VA,2482
|
|
146
146
|
sunholo/vertex/type_dict_to_json.py,sha256=uTzL4o9tJRao4u-gJOFcACgWGkBOtqACmb6ihvCErL8,4694
|
|
147
|
-
sunholo-0.99.
|
|
148
|
-
sunholo-0.99.
|
|
149
|
-
sunholo-0.99.
|
|
150
|
-
sunholo-0.99.
|
|
151
|
-
sunholo-0.99.
|
|
152
|
-
sunholo-0.99.
|
|
147
|
+
sunholo-0.99.6.dist-info/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
|
|
148
|
+
sunholo-0.99.6.dist-info/METADATA,sha256=xAcEAuV9m5B99TrwYQo_M-KItqtCdEQdq0G5F-WHZXk,8310
|
|
149
|
+
sunholo-0.99.6.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
|
150
|
+
sunholo-0.99.6.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
|
|
151
|
+
sunholo-0.99.6.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
|
|
152
|
+
sunholo-0.99.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|