Spaces:
Sleeping
Sleeping
Merge pull request #3 from serverdaun/codex/set-current-date-as-default
Browse files- src/research_manager.py +4 -1
src/research_manager.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
from agents import Runner, gen_trace_id, trace
|
|
|
|
| 2 |
|
| 3 |
from clarifier import ClarifyingQuestions, clarifier_agent
|
| 4 |
from report_generator import ReportData
|
|
@@ -13,7 +14,9 @@ class ResearchManager:
|
|
| 13 |
with trace("Research trace", trace_id=trace_id):
|
| 14 |
print("Starting research with ResearchAgent…")
|
| 15 |
|
| 16 |
-
|
|
|
|
|
|
|
| 17 |
f"Original query: {query}\n\nUser clarifications:\n{clarifications}"
|
| 18 |
if clarifications
|
| 19 |
else query
|
|
|
|
| 1 |
from agents import Runner, gen_trace_id, trace
|
| 2 |
+
from datetime import datetime
|
| 3 |
|
| 4 |
from clarifier import ClarifyingQuestions, clarifier_agent
|
| 5 |
from report_generator import ReportData
|
|
|
|
| 14 |
with trace("Research trace", trace_id=trace_id):
|
| 15 |
print("Starting research with ResearchAgent…")
|
| 16 |
|
| 17 |
+
today = datetime.utcnow().date().isoformat()
|
| 18 |
+
prefix = f"Current date: {today}\n"
|
| 19 |
+
combined_query = prefix + (
|
| 20 |
f"Original query: {query}\n\nUser clarifications:\n{clarifications}"
|
| 21 |
if clarifications
|
| 22 |
else query
|