You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'CodeActAgent': 'When you think you have solved the question, please first send your answer to user through message and then exit.\n'
47
+
'CodeActAgent': 'When you think you have solved the question, please use the finish tool and include your final answer in the message parameter of the finish tool. Your final answer MUST be encapsulated within <solution> and </solution>.\n'
instruction="""You have one question to answer. It is paramount that you provide a correct answer.
146
+
Give it all you can: I know for a fact that you have access to all the relevant tools to solve it and find the correct answer (the answer does exist). Failure or 'I cannot answer' or 'None found' will not be tolerated, success will be rewarded.
147
+
You must make sure you find the correct answer! You MUST strictly follow the task-specific formatting instructions for your final answer.
148
+
Here is the task:
149
+
{task_question}
150
+
""".format(
151
+
task_question=instance['Question'],
152
+
)
138
153
logger.info(f'Instruction: {instruction}')
139
154
ifdest_file:
140
155
instruction+=f'\n\nThe mentioned file is provided in the workspace at: {dest_file.split("/")[-1]}'
141
156
142
-
instruction+='IMPORTANT: You should ONLY interact with the environment provided to you AND NEVER ASK FOR HUMAN HELP.\n'
143
-
instruction+='Please encapsulate your final answer (answer ONLY) within <solution> and </solution>.\n'
157
+
instruction+="""IMPORTANT: When seeking information from a website, REFRAIN from arbitrary URL navigation. You should utilize the designated search engine tool with precise keywords to obtain relevant URLs or use the specific website's search interface. DO NOT navigate directly to specific URLs as they may not exist.\n\nFor example: if you want to search for a research paper on Arxiv, either use the search engine tool with specific keywords or navigate to arxiv.org and then use its interface.\n"""
158
+
instruction+='IMPORTANT: You should NEVER ask for Human Help.\n'
159
+
instruction+='IMPORTANT: Please encapsulate your final answer (answer ONLY) within <solution> and </solution>. Your answer will be evaluated using string matching approaches so it important that you STRICTLY adhere to the output formatting instructions specified in the task (e.g., alphabetization, sequencing, units, rounding, decimal places, etc.)\n'
144
160
instruction+= (
145
161
'For example: The answer to the question is <solution> 42 </solution>.\n'
146
162
)
163
+
instruction+="IMPORTANT: Your final answer should be a number OR as few words as possible OR a comma separated list of numbers and/or strings. If you are asked for a number, express it numerically (i.e., with digits rather than words), do not use commas, and do not include units such as $ or percent signs unless specified otherwise. If you are asked for a string, don't use articles, neither abbreviations (e.g. for cities). If you are asked for a comma separated list, apply the above rules depending of whether the element to be put in the list is a number or a string.\n"
164
+
147
165
# NOTE: You can actually set slightly different instruction for different agents
0 commit comments