praisonaiagents 0.0.8__py3-none-any.whl → 0.0.9__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- praisonaiagents/agent/agent.py +6 -6
- praisonaiagents/agents/agents.py +2 -2
- {praisonaiagents-0.0.8.dist-info → praisonaiagents-0.0.9.dist-info}/METADATA +1 -1
- {praisonaiagents-0.0.8.dist-info → praisonaiagents-0.0.9.dist-info}/RECORD +6 -6
- {praisonaiagents-0.0.8.dist-info → praisonaiagents-0.0.9.dist-info}/WHEEL +0 -0
- {praisonaiagents-0.0.8.dist-info → praisonaiagents-0.0.9.dist-info}/top_level.txt +0 -0
praisonaiagents/agent/agent.py
CHANGED
@@ -290,8 +290,8 @@ class Agent:
|
|
290
290
|
def chat(self, prompt, temperature=0.2, tools=None, output_json=None):
|
291
291
|
if self.use_system_prompt:
|
292
292
|
system_prompt = f"""{self.backstory}\n
|
293
|
-
|
294
|
-
|
293
|
+
Your Role: {self.role}\n
|
294
|
+
Your Goal: {self.goal}
|
295
295
|
"""
|
296
296
|
else:
|
297
297
|
system_prompt = None
|
@@ -364,10 +364,10 @@ class Agent:
|
|
364
364
|
return response_text
|
365
365
|
|
366
366
|
reflection_prompt = f"""
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
367
|
+
Reflect on your previous response: '{response_text}'.
|
368
|
+
Identify any flaws, improvements, or actions.
|
369
|
+
Provide a "satisfactory" status ('yes' or 'no').
|
370
|
+
Output MUST be JSON with 'reflection' and 'satisfactory'.
|
371
371
|
"""
|
372
372
|
logging.debug(f"{self.name} reflection attempt {reflection_count+1}, sending prompt: {reflection_prompt}")
|
373
373
|
messages.append({"role": "user", "content": reflection_prompt})
|
praisonaiagents/agents/agents.py
CHANGED
@@ -64,8 +64,8 @@ class PraisonAIAgents:
|
|
64
64
|
executor_agent = task.agent
|
65
65
|
|
66
66
|
task_prompt = f"""
|
67
|
-
|
68
|
-
|
67
|
+
You need to do the following task: {task.description}.
|
68
|
+
Expected Output: {task.expected_output}.
|
69
69
|
"""
|
70
70
|
if task.context:
|
71
71
|
context_results = ""
|
@@ -1,9 +1,9 @@
|
|
1
1
|
praisonaiagents/__init__.py,sha256=gI8vEabBTRPsE_E8GA5sBMi4sTtJI-YokPrH2Nor-k0,741
|
2
2
|
praisonaiagents/main.py,sha256=zDhN5KKtKbfruolDNxlyJkcFlkSt4KQkQTDRfQVAhxc,3960
|
3
3
|
praisonaiagents/agent/__init__.py,sha256=sKO8wGEXvtCrvV1e834r1Okv0XAqAxqZCqz6hKLiTvA,79
|
4
|
-
praisonaiagents/agent/agent.py,sha256=
|
4
|
+
praisonaiagents/agent/agent.py,sha256=cLzo3KAHY0HfZj6kxqCe0ydsUUkh7Ml69QYEHbvZX7s,18153
|
5
5
|
praisonaiagents/agents/__init__.py,sha256=7RDeQNSqZg5uBjD4M_0p_F6YgfWuDuxPFydPU50kDYc,120
|
6
|
-
praisonaiagents/agents/agents.py,sha256=
|
6
|
+
praisonaiagents/agents/agents.py,sha256=CBN7OQwFbTgiKXVn7o8987mBH9TUr5s721AC-FSu8AQ,13680
|
7
7
|
praisonaiagents/build/lib/praisonaiagents/__init__.py,sha256=Nqnn8clbgv-5l0PgxcTOldg8mkMKrFn4TvPL-rYUUGg,1
|
8
8
|
praisonaiagents/build/lib/praisonaiagents/main.py,sha256=zDhN5KKtKbfruolDNxlyJkcFlkSt4KQkQTDRfQVAhxc,3960
|
9
9
|
praisonaiagents/build/lib/praisonaiagents/agent/__init__.py,sha256=sKO8wGEXvtCrvV1e834r1Okv0XAqAxqZCqz6hKLiTvA,79
|
@@ -14,7 +14,7 @@ praisonaiagents/build/lib/praisonaiagents/task/__init__.py,sha256=VL5hXVmyGjINb3
|
|
14
14
|
praisonaiagents/build/lib/praisonaiagents/task/task.py,sha256=4Y1qX8OeEFcid2yhAiPYylvHpuDmWORsyNL16_BiVvI,1831
|
15
15
|
praisonaiagents/task/__init__.py,sha256=VL5hXVmyGjINb34AalxpBMl-YW9m5EDcRkMTKkSSl7c,80
|
16
16
|
praisonaiagents/task/task.py,sha256=4Y1qX8OeEFcid2yhAiPYylvHpuDmWORsyNL16_BiVvI,1831
|
17
|
-
praisonaiagents-0.0.
|
18
|
-
praisonaiagents-0.0.
|
19
|
-
praisonaiagents-0.0.
|
20
|
-
praisonaiagents-0.0.
|
17
|
+
praisonaiagents-0.0.9.dist-info/METADATA,sha256=ztaeKCi00IcYdLouONeGr4kQDf1sN-ppe3tSvN35amU,232
|
18
|
+
praisonaiagents-0.0.9.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
19
|
+
praisonaiagents-0.0.9.dist-info/top_level.txt,sha256=_HsRddrJ23iDx5TTqVUVvXG2HeHBL5voshncAMDGjtA,16
|
20
|
+
praisonaiagents-0.0.9.dist-info/RECORD,,
|
File without changes
|
File without changes
|