EtienneB commited on
Commit
e89e56c
·
1 Parent(s): 2cf9218

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +1 -5
agent.py CHANGED
@@ -140,11 +140,7 @@ def build_graph():
140
  # Clean the answer
141
  clean_text = clean_answer(llm_response.content)
142
 
143
- # Format the response properly
144
- task_id = str(state.get("task_id", "1"))
145
- formatted_response = [{"task_id": task_id, "submitted_answer": clean_text}]
146
-
147
- return {"messages": [AIMessage(content=json.dumps(formatted_response, ensure_ascii=False))]}
148
 
149
  # --- Graph Definition ---
150
  builder = StateGraph(MessagesState)
 
140
  # Clean the answer
141
  clean_text = clean_answer(llm_response.content)
142
 
143
+ return {"messages": [AIMessage(content=json.dumps(clean_text, ensure_ascii=False))]}
 
 
 
 
144
 
145
  # --- Graph Definition ---
146
  builder = StateGraph(MessagesState)