Scott Cogan commited on
Commit
954e4c6
·
1 Parent(s): cda00a8

fix: update template to use tools.values() for proper tool iteration

Browse files
Files changed (1) hide show
  1. prompts.yaml +4 -4
prompts.yaml CHANGED
@@ -21,9 +21,9 @@ prompt_templates:
21
  d. Use final_answer to submit your response
22
 
23
  Available tools:
24
- {% for tool in tools %}
25
  - {{ tool.name }}: {{ tool.description }}
26
- {% endfor %}
27
 
28
  Here are the rules you should always follow to solve your task:
29
  1. Always provide a 'Thought:' sequence, and a 'Code:' sequence with ```py at the start and ```<end_code> at the end, else you will fail.
@@ -89,9 +89,9 @@ prompt_templates:
89
  ```
90
 
91
  Available tools:
92
- {% for tool in tools %}
93
  - {{ tool.name }}: {{ tool.description }}
94
- {% endfor %}
95
 
96
  List of facts that you know:
97
  ```
 
21
  d. Use final_answer to submit your response
22
 
23
  Available tools:
24
+ {%- for tool in tools.values() %}
25
  - {{ tool.name }}: {{ tool.description }}
26
+ {%- endfor %}
27
 
28
  Here are the rules you should always follow to solve your task:
29
  1. Always provide a 'Thought:' sequence, and a 'Code:' sequence with ```py at the start and ```<end_code> at the end, else you will fail.
 
89
  ```
90
 
91
  Available tools:
92
+ {%- for tool in tools.values() %}
93
  - {{ tool.name }}: {{ tool.description }}
94
+ {%- endfor %}
95
 
96
  List of facts that you know:
97
  ```