GattoNero commited on
Commit
732da52
·
verified ·
1 Parent(s): 6aa4c6e

Update prompt_settings.py

Browse files
Files changed (1) hide show
  1. prompt_settings.py +9 -1
prompt_settings.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  verification_of_final_answer = '''
2
  If the task involves a position, image, or diagram, thoroughly analyze every element of the input before answering. For every task, always think step by step and verify your reasoning with extra care.
3
  Before giving your final answer, perform an internal validation: simulate receiving your own answer and check that it is logically sound and correct.
@@ -6,4 +9,9 @@ When providing your final answer, do not include any explanation, reasoning, or
6
  Output only the final answer as a single word, number, or short phrase, as expected by the task.
7
  Do not add punctuation, quotes, or full sentences.
8
  If the input is ambiguous or incomplete, state that clearly instead of guessing.
9
- '''
 
 
 
 
 
 
1
+ import importlib
2
+ import yaml
3
+
4
  verification_of_final_answer = '''
5
  If the task involves a position, image, or diagram, thoroughly analyze every element of the input before answering. For every task, always think step by step and verify your reasoning with extra care.
6
  Before giving your final answer, perform an internal validation: simulate receiving your own answer and check that it is logically sound and correct.
 
9
  Output only the final answer as a single word, number, or short phrase, as expected by the task.
10
  Do not add punctuation, quotes, or full sentences.
11
  If the input is ambiguous or incomplete, state that clearly instead of guessing.
12
+ '''
13
+
14
+
15
+ yaml_template = yaml.safe_load(
16
+ importlib.resources.files("smolagents.prompts").joinpath("code_agent.yaml").read_text()
17
+ )