praisonaiagents 0.0.151__py3-none-any.whl → 0.0.152__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.
- praisonaiagents/llm/llm.py +8 -0
- {praisonaiagents-0.0.151.dist-info → praisonaiagents-0.0.152.dist-info}/METADATA +1 -1
- {praisonaiagents-0.0.151.dist-info → praisonaiagents-0.0.152.dist-info}/RECORD +5 -5
- {praisonaiagents-0.0.151.dist-info → praisonaiagents-0.0.152.dist-info}/WHEEL +0 -0
- {praisonaiagents-0.0.151.dist-info → praisonaiagents-0.0.152.dist-info}/top_level.txt +0 -0
praisonaiagents/llm/llm.py
CHANGED
@@ -1456,6 +1456,8 @@ class LLM:
|
|
1456
1456
|
)
|
1457
1457
|
if should_break:
|
1458
1458
|
final_response_text = tool_summary_text
|
1459
|
+
# Reset interaction_displayed to ensure final summary is shown
|
1460
|
+
interaction_displayed = False
|
1459
1461
|
break
|
1460
1462
|
elif tool_summary_text is None and iteration_count > self.OLLAMA_SUMMARY_ITERATION_THRESHOLD:
|
1461
1463
|
# Continue iteration after adding final answer prompt
|
@@ -1485,6 +1487,8 @@ class LLM:
|
|
1485
1487
|
tool_summary = self._generate_ollama_tool_summary(accumulated_tool_results, response_text)
|
1486
1488
|
if tool_summary:
|
1487
1489
|
final_response_text = tool_summary
|
1490
|
+
# Reset interaction_displayed to ensure final summary is shown
|
1491
|
+
interaction_displayed = False
|
1488
1492
|
break
|
1489
1493
|
|
1490
1494
|
# If we've executed tools in previous iterations, this response contains the final answer
|
@@ -2567,6 +2571,8 @@ Output MUST be JSON with 'reflection' and 'satisfactory'.
|
|
2567
2571
|
)
|
2568
2572
|
if should_break:
|
2569
2573
|
final_response_text = tool_summary_text
|
2574
|
+
# Reset interaction_displayed to ensure final summary is shown
|
2575
|
+
interaction_displayed = False
|
2570
2576
|
break
|
2571
2577
|
elif tool_summary_text is None and iteration_count > self.OLLAMA_SUMMARY_ITERATION_THRESHOLD:
|
2572
2578
|
# Continue iteration after adding final answer prompt
|
@@ -2594,6 +2600,8 @@ Output MUST be JSON with 'reflection' and 'satisfactory'.
|
|
2594
2600
|
tool_summary = self._generate_ollama_tool_summary(accumulated_tool_results, response_text)
|
2595
2601
|
if tool_summary:
|
2596
2602
|
final_response_text = tool_summary
|
2603
|
+
# Reset interaction_displayed to ensure final summary is shown
|
2604
|
+
interaction_displayed = False
|
2597
2605
|
break
|
2598
2606
|
|
2599
2607
|
# If we've executed tools in previous iterations, this response contains the final answer
|
@@ -21,7 +21,7 @@ praisonaiagents/knowledge/__init__.py,sha256=xL1Eh-a3xsHyIcU4foOWF-JdWYIYBALJH9b
|
|
21
21
|
praisonaiagents/knowledge/chunking.py,sha256=G6wyHa7_8V0_7VpnrrUXbEmUmptlT16ISJYaxmkSgmU,7678
|
22
22
|
praisonaiagents/knowledge/knowledge.py,sha256=OzK81oA6sjk9nAUWphS7AkXxvalrv2AHB4FtHjzYgxI,30115
|
23
23
|
praisonaiagents/llm/__init__.py,sha256=SqdU1pRqPrR6jZeWYyDeTvmZKCACywk0v4P0k5Fuowk,1107
|
24
|
-
praisonaiagents/llm/llm.py,sha256=
|
24
|
+
praisonaiagents/llm/llm.py,sha256=ChQQoBkfVoVaPg13qZ9S3rM0rhrQJjVMCuJv4irvTVY,173421
|
25
25
|
praisonaiagents/llm/model_capabilities.py,sha256=cxOvZcjZ_PIEpUYKn3S2FMyypfOSfbGpx4vmV7Y5vhI,3967
|
26
26
|
praisonaiagents/llm/model_router.py,sha256=Jy2pShlkLxqXF3quz-MRB3-6L9vaUSgUrf2YJs_Tsg0,13995
|
27
27
|
praisonaiagents/llm/openai_client.py,sha256=3EVjIs3tnBNFDy_4ZxX9DJVq54kS0FMm38m5Gkpun7U,57234
|
@@ -65,7 +65,7 @@ praisonaiagents/tools/xml_tools.py,sha256=iYTMBEk5l3L3ryQ1fkUnNVYK-Nnua2Kx2S0dxN
|
|
65
65
|
praisonaiagents/tools/yaml_tools.py,sha256=uogAZrhXV9O7xvspAtcTfpKSQYL2nlOTvCQXN94-G9A,14215
|
66
66
|
praisonaiagents/tools/yfinance_tools.py,sha256=s2PBj_1v7oQnOobo2fDbQBACEHl61ftG4beG6Z979ZE,8529
|
67
67
|
praisonaiagents/tools/train/data/generatecot.py,sha256=H6bNh-E2hqL5MW6kX3hqZ05g9ETKN2-kudSjiuU_SD8,19403
|
68
|
-
praisonaiagents-0.0.
|
69
|
-
praisonaiagents-0.0.
|
70
|
-
praisonaiagents-0.0.
|
71
|
-
praisonaiagents-0.0.
|
68
|
+
praisonaiagents-0.0.152.dist-info/METADATA,sha256=a-HyisF8Pw70UqkSloPXYxFj9p1e4pe1BITREE9xlkU,2146
|
69
|
+
praisonaiagents-0.0.152.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
70
|
+
praisonaiagents-0.0.152.dist-info/top_level.txt,sha256=_HsRddrJ23iDx5TTqVUVvXG2HeHBL5voshncAMDGjtA,16
|
71
|
+
praisonaiagents-0.0.152.dist-info/RECORD,,
|
File without changes
|
File without changes
|