Skip to content

Commit bdf0b42

Browse files
authored
Fix/remove dynamic date from prompts (#51)
* fix: remove dynamic date from system prompt to enable caching * feat: restore available_tools placeholder in system prompt --------- Co-authored-by: Valerii Kovalskii <vakovalskii@users.noreply.github.com>
1 parent 9f0d063 commit bdf0b42

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

sgr_deep_research/core/prompts.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ def get_system_prompt(cls, available_tools: list[BaseTool]) -> str:
3333
]
3434
try:
3535
return template.format(
36-
current_date=datetime.now().strftime("%Y-%m-%d %H:%M:%S"),
3736
available_tools="\n".join(available_tools_str_list),
3837
)
3938
except KeyError as e:

sgr_deep_research/prompts/system_prompt.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ You are an expert researcher with adaptive planning and schema-guided-reasoning
33
</MAIN_TASK_GUIDELINES>
44

55
<DATE_GUIDELINES>
6-
CURRENT DATE: {current_date}
6+
PAY ATTENTION TO THE DATE INSIDE THE USER REQUEST
77
DATE FORMAT: YYYY-MM-DD HH:MM:SS (ISO 8601)
88
IMPORTANT: The date above is in YYYY-MM-DD format (Year-Month-Day). For example, 2025-10-03 means October 3rd, 2025, NOT March 10th.
99
</DATE_GUIDELINES>

0 commit comments

Comments
 (0)