Chris
commited on
Commit
·
33c409d
1
Parent(s):
9d3b3f4
Final 7.5.3
Browse files
src/workflow/gaia_workflow.py
CHANGED
|
@@ -187,11 +187,13 @@ class GAIAWorkflow:
|
|
| 187 |
logger.info(f"🚀 Processing question: {question[:100]}...")
|
| 188 |
|
| 189 |
# Initialize state
|
| 190 |
-
initial_state = GAIAAgentState(
|
| 191 |
-
|
| 192 |
-
|
|
|
|
|
|
|
|
|
|
| 193 |
initial_state.file_path = file_path
|
| 194 |
-
initial_state.file_name = file_name
|
| 195 |
initial_state.difficulty_level = difficulty_level
|
| 196 |
|
| 197 |
try:
|
|
@@ -268,11 +270,13 @@ class SimpleGAIAWorkflow:
|
|
| 268 |
"""Process question with simplified sequential workflow"""
|
| 269 |
|
| 270 |
# Initialize state
|
| 271 |
-
state = GAIAAgentState(
|
| 272 |
-
|
| 273 |
-
|
|
|
|
|
|
|
|
|
|
| 274 |
state.file_path = file_path
|
| 275 |
-
state.file_name = file_name
|
| 276 |
state.difficulty_level = difficulty_level
|
| 277 |
|
| 278 |
try:
|
|
|
|
| 187 |
logger.info(f"🚀 Processing question: {question[:100]}...")
|
| 188 |
|
| 189 |
# Initialize state
|
| 190 |
+
initial_state = GAIAAgentState(
|
| 191 |
+
question=question,
|
| 192 |
+
question_id=task_id or f"workflow_{hash(question) % 10000}",
|
| 193 |
+
file_name=file_name,
|
| 194 |
+
file_content=None
|
| 195 |
+
)
|
| 196 |
initial_state.file_path = file_path
|
|
|
|
| 197 |
initial_state.difficulty_level = difficulty_level
|
| 198 |
|
| 199 |
try:
|
|
|
|
| 270 |
"""Process question with simplified sequential workflow"""
|
| 271 |
|
| 272 |
# Initialize state
|
| 273 |
+
state = GAIAAgentState(
|
| 274 |
+
question=question,
|
| 275 |
+
question_id=task_id or f"simple_{hash(question) % 10000}",
|
| 276 |
+
file_name=file_name,
|
| 277 |
+
file_content=None
|
| 278 |
+
)
|
| 279 |
state.file_path = file_path
|
|
|
|
| 280 |
state.difficulty_level = difficulty_level
|
| 281 |
|
| 282 |
try:
|