Skip to content

Commit 7a720a4

Browse files
Some system prompts were improved
1 parent b02405d commit 7a720a4

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

Agents/CodeAgent.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ class CodeAgent:
2727
- If the prompt is unclear, choose the simplest reasonable implementation.
2828
2929
Safety rules:
30-
- No filesystem access unless explicitly allowed.
31-
- No network calls unless explicitly allowed.
32-
- No OS-level commands unless explicitly allowed.
30+
- No Harmfull code allowed.
3331
- Avoid infinite loops or dangerously long computations.
3432
3533
Always respond with ONLY the final code.

Agents/TaAgent.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ class TaAgent:
158158
Inline math: \(a . b\)
159159
160160
Block math: \[a . b\]
161+
14. When you call a tool, always pass its result through to the final response.
161162
162163
Goal: Provide an educational, understandable response without tables or separators.
163164
"""
@@ -226,7 +227,7 @@ def ANSWER_QUERY(cls, query, rag_data, user_obj):
226227
]
227228

228229
message, _ = cls.Agent(
229-
query="با توجه به خروجی ابزار، پاسخ کامل و نهایی را ارائه دهید.",
230+
query="با توجه به خروجی (های ) ابزار، پاسخ کامل و نهایی را همراه با خروجی های ابزار ارائه دهید.",
230231
Messages=messages,
231232
reasoning_effort="low",
232233
max_token=2048

Utils/RagDbBuilder.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# ==================================================================
2+
# 0. Imports
3+
# ==================================================================
14
import os
25
import pickle
36
import numpy as np

0 commit comments

Comments
 (0)