praisonaiagents 0.0.143__py3-none-any.whl → 0.0.144__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.
@@ -1383,23 +1383,6 @@ Your Goal: {self.goal}"""
1383
1383
  # Rollback chat history on guardrail failure
1384
1384
  self.chat_history = self.chat_history[:chat_history_length]
1385
1385
  return None
1386
- # Only consider satisfactory after minimum reflections
1387
- if reflection_output.satisfactory == "yes" and reflection_count >= self.min_reflect - 1:
1388
- if self.verbose:
1389
- display_self_reflection("Agent marked the response as satisfactory after meeting minimum reflections", console=self.console)
1390
- # User message already added before LLM call via _build_messages
1391
- self.chat_history.append({"role": "assistant", "content": response_text})
1392
- # Apply guardrail validation after satisfactory reflection
1393
- try:
1394
- validated_response = self._apply_guardrail_with_retry(response_text, original_prompt, temperature, tools, task_name, task_description, task_id)
1395
- # Execute callback after validation
1396
- self._execute_callback_and_display(original_prompt, validated_response, time.time() - start_time, task_name, task_description, task_id)
1397
- return validated_response
1398
- except Exception as e:
1399
- logging.error(f"Agent {self.name}: Guardrail validation failed after reflection: {e}")
1400
- # Rollback chat history on guardrail failure
1401
- self.chat_history = self.chat_history[:chat_history_length]
1402
- return None
1403
1386
 
1404
1387
  if not self.self_reflect:
1405
1388
  # User message already added before LLM call via _build_messages
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: praisonaiagents
3
- Version: 0.0.143
3
+ Version: 0.0.144
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
@@ -3,7 +3,7 @@ praisonaiagents/approval.py,sha256=UJ4OhfihpFGR5CAaMphqpSvqdZCHi5w2MGw1MByZ1FQ,9
3
3
  praisonaiagents/main.py,sha256=b5dKlkf6NMeumSzixreHB9ui90f8YMAi5r1fCbTpQVw,17225
4
4
  praisonaiagents/session.py,sha256=FHWButPBaFGA4x1U_2gImroQChHnFy231_aAa_n5KOQ,20364
5
5
  praisonaiagents/agent/__init__.py,sha256=FkjW6f3EU8heQ9tvctfLbOWV9_dOXmS1PcFNgcStns8,403
6
- praisonaiagents/agent/agent.py,sha256=Vu8nNGOndNa5I3VT5hPbMBhWCw9i24tzc7yPSwf9jvs,127439
6
+ praisonaiagents/agent/agent.py,sha256=1wI2Ohp9evUza7qlZt3yIu4goroR8Jm8EIenXaOpDso,125805
7
7
  praisonaiagents/agent/handoff.py,sha256=Saq0chqfvC6Zf5UbXvmctybbehqnotrXn72JsS-76Q0,13099
8
8
  praisonaiagents/agent/image_agent.py,sha256=xKDhW8T1Y3e15lQpY6N2pdvBNJmAoWDibJa4BYa-Njs,10205
9
9
  praisonaiagents/agent/router_agent.py,sha256=a_b6w5Ti05gvK80uKGMIcT14fiCTKv8rCQPCWAUfIiE,12713
@@ -58,7 +58,7 @@ praisonaiagents/tools/xml_tools.py,sha256=iYTMBEk5l3L3ryQ1fkUnNVYK-Nnua2Kx2S0dxN
58
58
  praisonaiagents/tools/yaml_tools.py,sha256=uogAZrhXV9O7xvspAtcTfpKSQYL2nlOTvCQXN94-G9A,14215
59
59
  praisonaiagents/tools/yfinance_tools.py,sha256=s2PBj_1v7oQnOobo2fDbQBACEHl61ftG4beG6Z979ZE,8529
60
60
  praisonaiagents/tools/train/data/generatecot.py,sha256=H6bNh-E2hqL5MW6kX3hqZ05g9ETKN2-kudSjiuU_SD8,19403
61
- praisonaiagents-0.0.143.dist-info/METADATA,sha256=N0xvQUdcsKYAVsmFGXHh97-P5WsqlXvWfoSkCrEbkO0,1851
62
- praisonaiagents-0.0.143.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
63
- praisonaiagents-0.0.143.dist-info/top_level.txt,sha256=_HsRddrJ23iDx5TTqVUVvXG2HeHBL5voshncAMDGjtA,16
64
- praisonaiagents-0.0.143.dist-info/RECORD,,
61
+ praisonaiagents-0.0.144.dist-info/METADATA,sha256=si-zONS7o-3lxoUqzPPpBTlJcRfNj1SsNFg_H1f8VJY,1851
62
+ praisonaiagents-0.0.144.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
63
+ praisonaiagents-0.0.144.dist-info/top_level.txt,sha256=_HsRddrJ23iDx5TTqVUVvXG2HeHBL5voshncAMDGjtA,16
64
+ praisonaiagents-0.0.144.dist-info/RECORD,,