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.
@@ -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
- if not fn_result_json.get('stdout') and fn_result_json.get('stderr'):
492
- token += f"{fn_result}\n"
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.4
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.4.tar.gz
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=S_xNGm-GMIeymfNd74G9KXJpEBprrXhOThPi9BI4SU0,24863
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.4.dist-info/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
148
- sunholo-0.99.4.dist-info/METADATA,sha256=sDVj5CQ3mDSGCPk3KyA56D4yR6h_uzmPxE_wOtZehKo,8310
149
- sunholo-0.99.4.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
150
- sunholo-0.99.4.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
151
- sunholo-0.99.4.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
152
- sunholo-0.99.4.dist-info/RECORD,,
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,,