EtienneB commited on
Commit
916fd5c
·
1 Parent(s): d82a6d1

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +1 -2
agent.py CHANGED
@@ -81,8 +81,7 @@ def build_graph():
81
  answer_text = answer_text.split(":", 1)[1].strip()
82
  # Get task_id from state or set a placeholder
83
  task_id = state.get("task_id", "1") # Replace with actual logic if needed
84
- formatted = f'Answers (answers): [{{"task_id": "{task_id}", "submitted_answer": "{answer_text}"}}]'
85
- formatted = extract_flat_answer(formatted)
86
  return {"messages": [formatted]}
87
 
88
  # --- Graph Definition ---
 
81
  answer_text = answer_text.split(":", 1)[1].strip()
82
  # Get task_id from state or set a placeholder
83
  task_id = state.get("task_id", "1") # Replace with actual logic if needed
84
+ formatted = [{"task_id": task_id, "submitted_answer": answer_text}]
 
85
  return {"messages": [formatted]}
86
 
87
  # --- Graph Definition ---