praisonaiagents 0.0.148__py3-none-any.whl → 0.0.150__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.
@@ -1360,6 +1360,8 @@ Your Goal: {self.goal}"""
1360
1360
  # Apply guardrail validation for custom LLM response
1361
1361
  try:
1362
1362
  validated_response = self._apply_guardrail_with_retry(response_text, prompt, temperature, tools, task_name, task_description, task_id)
1363
+ # Execute callback and display after validation
1364
+ self._execute_callback_and_display(prompt, validated_response, time.time() - start_time, task_name, task_description, task_id)
1363
1365
  return validated_response
1364
1366
  except Exception as e:
1365
1367
  logging.error(f"Agent {self.name}: Guardrail validation failed for custom LLM: {e}")
praisonaiagents/main.py CHANGED
@@ -154,6 +154,10 @@ def display_interaction(message, response, markdown=True, generation_time=None,
154
154
 
155
155
  message = _clean_display_content(str(message))
156
156
  response = _clean_display_content(str(response))
157
+
158
+ # Skip display if response is empty (common with Gemini tool calls)
159
+ if not response or not response.strip():
160
+ return
157
161
 
158
162
  # Execute synchronous callbacks
159
163
  execute_sync_callback(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: praisonaiagents
3
- Version: 0.0.148
3
+ Version: 0.0.150
4
4
  Summary: Praison AI agents for completing complex tasks with Self Reflection Agents
5
5
  Author: Mervin Praison
6
6
  Requires-Python: >=3.10
@@ -2,10 +2,10 @@ praisonaiagents/__init__.py,sha256=pmoUafSn5f-ubjgY0rBBTw7N1wsRtg7X8-UGe477OH4,3
2
2
  praisonaiagents/_logging.py,sha256=WfgUX6jo9hClpgHVKSGz8gqkna9DDNhPJBv-wjhcJoM,4648
3
3
  praisonaiagents/_warning_patch.py,sha256=FSLdw1SnA9b1PSxHWaRIcuG9IiIwO5JT6uo_m3CM0NI,2816
4
4
  praisonaiagents/approval.py,sha256=UJ4OhfihpFGR5CAaMphqpSvqdZCHi5w2MGw1MByZ1FQ,9813
5
- praisonaiagents/main.py,sha256=jT6ur_GWYZRZk0YC8xHm80Vy86y4EGk-zOv4_fc-thU,17013
5
+ praisonaiagents/main.py,sha256=BqqskwUP-qrqCsHF9h_Wv99uS24ZeFTD8CaN6o6bnCE,17150
6
6
  praisonaiagents/session.py,sha256=FHWButPBaFGA4x1U_2gImroQChHnFy231_aAa_n5KOQ,20364
7
7
  praisonaiagents/agent/__init__.py,sha256=KBqW_augD-HcaV3FL88gUmhDCpwnSTavGENi7RqneTo,505
8
- praisonaiagents/agent/agent.py,sha256=SISsqrK_IUzjnnits4N9tOwtB66TmcmLVSc_t_7TmUI,143500
8
+ praisonaiagents/agent/agent.py,sha256=_EhjCKaqM4z2Dcgkndr2b2UmJJuKCjDkeIItvH_Bnok,143723
9
9
  praisonaiagents/agent/context_agent.py,sha256=zNI2Waghn5eo8g3QM1Dc7ZNSr2xw41D87GIK81FjW-Y,107489
10
10
  praisonaiagents/agent/handoff.py,sha256=Saq0chqfvC6Zf5UbXvmctybbehqnotrXn72JsS-76Q0,13099
11
11
  praisonaiagents/agent/image_agent.py,sha256=xKDhW8T1Y3e15lQpY6N2pdvBNJmAoWDibJa4BYa-Njs,10205
@@ -64,7 +64,7 @@ praisonaiagents/tools/xml_tools.py,sha256=iYTMBEk5l3L3ryQ1fkUnNVYK-Nnua2Kx2S0dxN
64
64
  praisonaiagents/tools/yaml_tools.py,sha256=uogAZrhXV9O7xvspAtcTfpKSQYL2nlOTvCQXN94-G9A,14215
65
65
  praisonaiagents/tools/yfinance_tools.py,sha256=s2PBj_1v7oQnOobo2fDbQBACEHl61ftG4beG6Z979ZE,8529
66
66
  praisonaiagents/tools/train/data/generatecot.py,sha256=H6bNh-E2hqL5MW6kX3hqZ05g9ETKN2-kudSjiuU_SD8,19403
67
- praisonaiagents-0.0.148.dist-info/METADATA,sha256=N2tVsvw141roESJw1oS87WT1DbDM0Rg-jiFO0OxQfCA,2146
68
- praisonaiagents-0.0.148.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
69
- praisonaiagents-0.0.148.dist-info/top_level.txt,sha256=_HsRddrJ23iDx5TTqVUVvXG2HeHBL5voshncAMDGjtA,16
70
- praisonaiagents-0.0.148.dist-info/RECORD,,
67
+ praisonaiagents-0.0.150.dist-info/METADATA,sha256=5JM0pL2Ubiq3OFuq2JU268cFwP6ic553UU1LWVMUBho,2146
68
+ praisonaiagents-0.0.150.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
69
+ praisonaiagents-0.0.150.dist-info/top_level.txt,sha256=_HsRddrJ23iDx5TTqVUVvXG2HeHBL5voshncAMDGjtA,16
70
+ praisonaiagents-0.0.150.dist-info/RECORD,,