sunholo 0.92.5__py3-none-any.whl → 0.92.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.
@@ -255,7 +255,9 @@ class GenAIFunctionProcessor:
255
255
  if not isinstance(fn_exec, genai.protos.FunctionDeclaration):
256
256
  # Execute the function with the provided parameters
257
257
  result = fn_exec(**params_obj)
258
- log.info(f"Got result from {function_name}: {result}")
258
+ log.info(f"Got result from {function_name}: {result} of type: {type(result)}")
259
+ if not isinstance(result, str):
260
+ log.warning(f"Tool functions should return strings: {function_name} returned type: {type(result)}")
259
261
  else:
260
262
  fn_result = type(fn).to_dict(fn)
261
263
  result = fn_result.get("result")
@@ -448,7 +450,7 @@ class GenAIFunctionProcessor:
448
450
  callback.on_llm_new_token(token=token)
449
451
 
450
452
  try:
451
- # Convert MapComposite to a standard Python dictionary
453
+ # Convert MapComposite to a standard Python dictionary
452
454
  if isinstance(fn_result, proto.marshal.collections.maps.MapComposite):
453
455
  fn_result = dict(fn_result)
454
456
  fn_result_json = json.loads(fn_result)
@@ -471,7 +473,7 @@ class GenAIFunctionProcessor:
471
473
  log.warning(f"{fn_result_json} did not work for decide_to_go_on")
472
474
  token = f"Error calling decide_to_go_on with {fn_result_json}\n"
473
475
  else:
474
- token = f"--- {fn_log} result: \n"
476
+ token = f"--- {fn}() result --- \n"
475
477
  if fn_result_json:
476
478
  if fn_result_json.get('stdout'):
477
479
  text = fn_result_json.get('stdout').encode('utf-8').decode('unicode_escape')
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sunholo
3
- Version: 0.92.5
3
+ Version: 0.92.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.92.5.tar.gz
6
+ Download-URL: https://github.com/sunholo-data/sunholo-py/archive/refs/tags/v0.92.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=Px9huSEMpGTDnT7LRtqNV2uswxmwOhPq2xB0tmAWkEE,24022
89
+ sunholo/genai/process_funcs_cls.py,sha256=1yDVh7Gi5qX0FMzV__8k3vn3BJ7AreX9CvPxM_QPFkU,24235
90
90
  sunholo/genai/safety.py,sha256=mkFDO_BeEgiKjQd9o2I4UxB6XI7a9U-oOFjZ8LGRUC4,1238
91
91
  sunholo/invoke/__init__.py,sha256=bELcqIjzKvaupcIN5OQmDgGx_8jARtH9T6PCe8UgcvE,99
92
92
  sunholo/invoke/async_class.py,sha256=vmLT6DqE1YaPd4W88_QzPQvSzsjwLUAwt23vGZm-BEs,5767
@@ -144,9 +144,9 @@ sunholo/vertex/init.py,sha256=1OQwcPBKZYBTDPdyU7IM4X4OmiXLdsNV30C-fee2scQ,2875
144
144
  sunholo/vertex/memory_tools.py,sha256=q_phxgGX2TG2j2MXNULF2xGzQnQPENwjPN9nZ_A9Gh0,7526
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.92.5.dist-info/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
148
- sunholo-0.92.5.dist-info/METADATA,sha256=X748Gkl4QelEA51iSkr372chQszEUNSWQvn2vOvSSr8,7806
149
- sunholo-0.92.5.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
150
- sunholo-0.92.5.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
151
- sunholo-0.92.5.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
152
- sunholo-0.92.5.dist-info/RECORD,,
147
+ sunholo-0.92.6.dist-info/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
148
+ sunholo-0.92.6.dist-info/METADATA,sha256=qQpD3u4tg37RVQcIZH2Kb0cemizMQQWS-PfHgHE4nYo,7806
149
+ sunholo-0.92.6.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
150
+ sunholo-0.92.6.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
151
+ sunholo-0.92.6.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
152
+ sunholo-0.92.6.dist-info/RECORD,,