Skip to content

Commit 88a6d5f

Browse files
maksimov-mmaksimov maksimvirrius
authored
fix curr date (#33)
* fix curr date * fix README * Update README.md * Update README.md --------- Co-authored-by: maksimov maksim <[email protected]> Co-authored-by: Lysenko Artem <[email protected]>
1 parent 5142712 commit 88a6d5f

File tree

3 files changed

+21
-19
lines changed

3 files changed

+21
-19
lines changed

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ Production-ready open-source system for automated research using Schema-Guided R
1818

1919
## 📊 Summary Table of Agents
2020

21-
| Agent | SGR Implementation | ReasoningTool | Tools | API Requests | Selection Mechanism |
22-
| ----------------------- | ------------------ | -------------------- | --------------------- | ------------ | -------------------- |
23-
| **1. SGR-Agent** | Structured Output | ❌ Built into schema | 6 basic | 1 | SO Union Type |
24-
| **2. FCAgent** | ❌ Absent | ❌ Absent | 6 basic | 1 | FC "required" |
25-
| **3. HybridSGRAgent** | FC Tool enforced | ✅ First step FC | 7 (6 + ReasoningTool) | 2 | FC → FC TOP AGENT |
26-
| **4. OptionalSGRAgent** | FC Tool optional | ✅ At models choice | 7 (6 + ReasoningTool) | 1–2 | FC "auto" |
27-
| **5. ReasoningFC_SO** | FC → SO → FC auto | ✅ FC enforced | 7 (6 + ReasoningTool) | 3 | FC → SO → FC auto |
21+
| Agent | SGR Implementation | ReasoningTool | Tools | API Requests | Selection Mechanism |
22+
| ---------------------------------- | ------------------ | -------------------- | --------------------- | ------------ | -------------------- |
23+
| **1. sgr_agent** | Structured Output | ❌ Built into schema | 6 basic | 1 | SO Union Type |
24+
| **2. tool_calling_agent** | ❌ Absent | ❌ Absent | 6 basic | 1 | FC "required" |
25+
| **3. sgr_tool_calling_agent** | FC Tool enforced | ✅ First step FC | 7 (6 + ReasoningTool) | 2 | FC → FC TOP AGENT |
26+
| **4. sgr_auto_tool_calling_agent** | FC Tool optional | ✅ At model's choice | 7 (6 + ReasoningTool) | 1–2 | FC "auto" |
27+
| **5. sgr_so_tool_calling_agent** | FC → SO → FC auto | ✅ FC enforced | 7 (6 + ReasoningTool) | 3 | FC → SO → FC auto |
2828

2929
## 👥 Open-Source Development Team
3030

@@ -116,7 +116,7 @@ client = OpenAI(
116116

117117
# Make research request
118118
response = client.chat.completions.create(
119-
model="sgr-agent",
119+
model="sgr_agent",
120120
messages=[{"role": "user", "content": "Research BMW X6 2025 prices in Russia"}],
121121
stream=True,
122122
temperature=0.4,
@@ -141,7 +141,7 @@ client = OpenAI(base_url="http://localhost:8010/v1", api_key="dummy")
141141
# Step 1: Initial research request
142142
print("Starting research...")
143143
response = client.chat.completions.create(
144-
model="sgr-agent",
144+
model="sgr_agent",
145145
messages=[{"role": "user", "content": "Research AI market trends"}],
146146
stream=True,
147147
temperature=0,
@@ -527,13 +527,13 @@ python sgr_deep_research --host 127.0.0.1 --port 8080
527527

528528
### Agent Types Overview
529529

530-
| Agent Model | Description |
531-
| ---------------------- | ---------------------------------- |
532-
| `sgr-agent` | Pure SGR (Schema-Guided Reasoning) |
533-
| `sgr-tools-agent` | SGR + Function Calling hybrid |
534-
| `sgr-auto-tools-agent` | SGR + Auto Function Calling |
535-
| `sgr-so-tools-agent` | SGR + Structured Output |
536-
| `tools-agent` | Pure Function Calling |
530+
| Agent Model | Description |
531+
| ----------------------------- | ---------------------------------- |
532+
| `sgr_agent` | Pure SGR (Schema-Guided Reasoning) |
533+
| `sgr_tool_calling_agent` | SGR + Function Calling hybrid |
534+
| `sgr_auto_tool_calling_agent` | SGR + Auto Function Calling |
535+
| `sgr_so_tool_calling_agent` | SGR + Structured Output |
536+
| `tool_calling_agent` | Pure Function Calling |
537537

538538
### Models Endpoint
539539

sgr_deep_research/core/prompts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ def get_system_prompt(cls, sources: list[SourceData], available_tools: list[Base
3535
]
3636
try:
3737
return template.format(
38-
current_date=datetime.now().strftime("%d-%m-%Y %H:%M:%S"),
39-
date_format="d-m-Y HH:MM:SS",
38+
current_date=datetime.now().strftime("%Y-%m-%d %H:%M:%S"),
39+
date_format="YYYY-MM-DD HH:MM:SS (ISO 8601)",
4040
available_tools="\n".join(available_tools_str_list),
4141
sources_formatted=sources_formatted,
4242
)

sgr_deep_research/prompts/system_prompt.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
You are an expert researcher with adaptive planning and Schema-Guided Reasoning capabilities.
22

3-
CURRENT DATE:{current_date} format: {date_format}
3+
CURRENT DATE: {current_date}
4+
DATE FORMAT: {date_format}
5+
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.
46

57
IMPORTANT: Detect the language from this request and use THE SAME LANGUAGE for all responses, searches, and reports.
68

0 commit comments

Comments
 (0)