praisonaiagents 0.0.86__py3-none-any.whl → 0.0.88__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/agent/agent.py +1 -1
- praisonaiagents/agents/agents.py +4 -2
- {praisonaiagents-0.0.86.dist-info → praisonaiagents-0.0.88.dist-info}/METADATA +1 -1
- {praisonaiagents-0.0.86.dist-info → praisonaiagents-0.0.88.dist-info}/RECORD +6 -6
- {praisonaiagents-0.0.86.dist-info → praisonaiagents-0.0.88.dist-info}/WHEEL +0 -0
- {praisonaiagents-0.0.86.dist-info → praisonaiagents-0.0.88.dist-info}/top_level.txt +0 -0
praisonaiagents/agent/agent.py
CHANGED
@@ -1478,6 +1478,7 @@ Your Goal: {self.goal}
|
|
1478
1478
|
from pydantic import BaseModel
|
1479
1479
|
import threading
|
1480
1480
|
import time
|
1481
|
+
import asyncio
|
1481
1482
|
|
1482
1483
|
# Define the request model here since we need pydantic
|
1483
1484
|
class AgentQuery(BaseModel):
|
@@ -1656,7 +1657,6 @@ Your Goal: {self.goal}
|
|
1656
1657
|
import threading
|
1657
1658
|
import time
|
1658
1659
|
import inspect
|
1659
|
-
import asyncio # Ensure asyncio is imported
|
1660
1660
|
# logging is already imported at the module level
|
1661
1661
|
|
1662
1662
|
except ImportError as e:
|
praisonaiagents/agents/agents.py
CHANGED
@@ -319,10 +319,11 @@ Expected Output: {task.expected_output}.
|
|
319
319
|
logger.info(f"Task {task_id} context items: {len(unique_contexts)}")
|
320
320
|
for i, ctx in enumerate(unique_contexts):
|
321
321
|
logger.info(f"Context {i+1}: {ctx[:100]}...")
|
322
|
+
context_separator = '\n\n'
|
322
323
|
task_prompt += f"""
|
323
324
|
Context:
|
324
325
|
|
325
|
-
{
|
326
|
+
{context_separator.join(unique_contexts)}
|
326
327
|
"""
|
327
328
|
task_prompt += "Please provide only the final result of your work. Do not add any conversation or extra explanation."
|
328
329
|
|
@@ -618,10 +619,11 @@ Expected Output: {task.expected_output}.
|
|
618
619
|
logger.info(f"Task {task_id} context items: {len(unique_contexts)}")
|
619
620
|
for i, ctx in enumerate(unique_contexts):
|
620
621
|
logger.info(f"Context {i+1}: {ctx[:100]}...")
|
622
|
+
context_separator = '\n\n'
|
621
623
|
task_prompt += f"""
|
622
624
|
Context:
|
623
625
|
|
624
|
-
{
|
626
|
+
{context_separator.join(unique_contexts)}
|
625
627
|
"""
|
626
628
|
|
627
629
|
# Add memory context if available
|
@@ -1,10 +1,10 @@
|
|
1
1
|
praisonaiagents/__init__.py,sha256=Z2_rSA6mYozz0r3ioUgKzl3QV8uWRDS_QaqPg2oGjqg,1324
|
2
2
|
praisonaiagents/main.py,sha256=l29nGEbV2ReBi4szURbnH0Fk0w2F_QZTmECysyZjYcA,15066
|
3
3
|
praisonaiagents/agent/__init__.py,sha256=j0T19TVNbfZcClvpbZDDinQxZ0oORgsMrMqx16jZ-bA,128
|
4
|
-
praisonaiagents/agent/agent.py,sha256
|
4
|
+
praisonaiagents/agent/agent.py,sha256=-zENKxcaAWH5KJOed4KmcpAeBDNtRlxqG58QHdLH6RA,86334
|
5
5
|
praisonaiagents/agent/image_agent.py,sha256=-5MXG594HVwSpFMcidt16YBp7udtik-Cp7eXlzLE1fY,8696
|
6
6
|
praisonaiagents/agents/__init__.py,sha256=_1d6Pqyk9EoBSo7E68sKyd1jDRlN1vxvVIRpoMc0Jcw,168
|
7
|
-
praisonaiagents/agents/agents.py,sha256=
|
7
|
+
praisonaiagents/agents/agents.py,sha256=lFWJDZeWQcr6RttV-pxvny-jfAM3UWiYjMnYo8pZYe0,59429
|
8
8
|
praisonaiagents/agents/autoagents.py,sha256=olYDn--rlJp-SckxILqmREkkgNlzCgEEcAUzfMj-54E,13518
|
9
9
|
praisonaiagents/knowledge/__init__.py,sha256=xL1Eh-a3xsHyIcU4foOWF-JdWYIYBALJH9bge0Ujuto,246
|
10
10
|
praisonaiagents/knowledge/chunking.py,sha256=G6wyHa7_8V0_7VpnrrUXbEmUmptlT16ISJYaxmkSgmU,7678
|
@@ -40,7 +40,7 @@ praisonaiagents/tools/xml_tools.py,sha256=iYTMBEk5l3L3ryQ1fkUnNVYK-Nnua2Kx2S0dxN
|
|
40
40
|
praisonaiagents/tools/yaml_tools.py,sha256=uogAZrhXV9O7xvspAtcTfpKSQYL2nlOTvCQXN94-G9A,14215
|
41
41
|
praisonaiagents/tools/yfinance_tools.py,sha256=s2PBj_1v7oQnOobo2fDbQBACEHl61ftG4beG6Z979ZE,8529
|
42
42
|
praisonaiagents/tools/train/data/generatecot.py,sha256=H6bNh-E2hqL5MW6kX3hqZ05g9ETKN2-kudSjiuU_SD8,19403
|
43
|
-
praisonaiagents-0.0.
|
44
|
-
praisonaiagents-0.0.
|
45
|
-
praisonaiagents-0.0.
|
46
|
-
praisonaiagents-0.0.
|
43
|
+
praisonaiagents-0.0.88.dist-info/METADATA,sha256=p9uG4zmHdSBsddSEP1qMPi-mGztIUp0k92pYWGpnMDQ,1244
|
44
|
+
praisonaiagents-0.0.88.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
|
45
|
+
praisonaiagents-0.0.88.dist-info/top_level.txt,sha256=_HsRddrJ23iDx5TTqVUVvXG2HeHBL5voshncAMDGjtA,16
|
46
|
+
praisonaiagents-0.0.88.dist-info/RECORD,,
|
File without changes
|
File without changes
|