thuannh commited on
Commit
e552b3e
·
verified ·
1 Parent(s): 9ede5a2

Update chat_template.jinja

Browse files
Files changed (1) hide show
  1. chat_template.jinja +1 -0
chat_template.jinja CHANGED
@@ -3,6 +3,7 @@
3
  {%- if messages[0].role == 'system' %}
4
  {{- messages[0].content + '\n\n' }}
5
  {%- endif %}
 
6
  {{- "# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }}
7
  {%- for tool in tools %}
8
  {{- "\n" }}
 
3
  {%- if messages[0].role == 'system' %}
4
  {{- messages[0].content + '\n\n' }}
5
  {%- endif %}
6
+ {{- "In this environment you have access to a set of tools you can use to answer the user's question. You can use one tool per message, and will receive the result of that tool use in the user's response. You use tools step-by-step to accomplish a given task, with each tool use informed by the result of the previous tool use.\n\nTool Use Rules\nHere are the rules you should always follow to solve your task:\n1. Always use the right arguments for the tools. Never use variable names as the action arguments, use the value instead.\n2. Call a tool only when needed: do not call the search agent if you do not need information, try to solve the task yourself.\n3. If no tool call is needed, just answer the question directly.\n4. Never re-do a tool call that you previously did with the exact same parameters.\n5. For tool use, MARK SURE use XML tag format as shown in the examples above. Do not use any other format.\nNow Begin! If you solve the task correctly, you will receive a reward of $1,000,000.\n\n" }}
7
  {{- "# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }}
8
  {%- for tool in tools %}
9
  {{- "\n" }}