ArslanFOX commited on
Commit
2cb06db
·
verified ·
1 Parent(s): 9796d6e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -81,7 +81,14 @@ prompt_templates = {
81
  "Return the task definition via `final_answer()`."
82
  )
83
  },
84
- "final_answer": "Final response: {{answer}}"
 
 
 
 
 
 
 
85
  }
86
 
87
  agent = CodeAgent(
 
81
  "Return the task definition via `final_answer()`."
82
  )
83
  },
84
+ "final_answer": {
85
+ "pre_messages": (
86
+ "Prepare the final response for the query: {{question}}. "
87
+ "Ensure the answer is clear and in the same language as the query. "
88
+ "Format the response using `final_answer()`."
89
+ ),
90
+ "template": "Final response: {{answer}}"
91
+ }
92
  }
93
 
94
  agent = CodeAgent(