SergeyO7 commited on
Commit
276f431
·
verified ·
1 Parent(s): 41f116c

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +19 -19
agent.py CHANGED
@@ -270,25 +270,25 @@ class MagAgent:
270
  max_tokens=8192
271
  )
272
 
273
- self.prompt = prompt or (
274
- """
275
- You are an advanced AI assistant specialized in solving complex, real-world tasks that require multi-step reasoning, factual accuracy, and use of external tools.
276
-
277
- Follow these principles:
278
- - Be precise and concise. The final answer must strictly match the required format with no extra commentary.
279
- - Use tools intelligently. If a question involves external information, structured data, images, or audio, call the appropriate tool to retrieve or process it.
280
- - Reason step-by-step. Think through the solution logically and plan your actions carefully before answering.
281
- - Validate information. Always verify facts when possible instead of guessing.
282
- - Use code if needed. For calculations, parsing, or transformations, generate Python code and execute it. But be careful, some questions contains time-consuming tasks, so you should be careful with the code you run. Better analyze the question and think about the best way to solve it.
283
- - Use `final_answer` to give the final answer.
284
- - Use name of file ONLY FROM "FILE:" section. THIS IF ALWAYS A FILE.
285
- IMPORTANT: When giving the final answer, output only the direct required result without any extra text like "Final Answer:" or explanations. YOU MUST RESPOND IN THE EXACT FORMAT AS THE QUESTION.
286
- QUESTION: {question}
287
-
288
- ANSWER:
289
- """
290
- )
291
- #FILE: {context}
292
 
293
  # Load prompt templates
294
  # with open("prompts.yaml", 'r') as stream:
 
270
  max_tokens=8192
271
  )
272
 
273
+ # self.prompt = prompt or (
274
+ # """
275
+ # You are an advanced AI assistant specialized in solving complex, real-world tasks that require multi-step reasoning, factual accuracy, and use of external tools.
276
+ #
277
+ # Follow these principles:
278
+ # - Be precise and concise. The final answer must strictly match the required format with no extra commentary.
279
+ # - Use tools intelligently. If a question involves external information, structured data, images, or audio, call the appropriate tool to retrieve or process it.
280
+ # - Reason step-by-step. Think through the solution logically and plan your actions carefully before answering.
281
+ # - Validate information. Always verify facts when possible instead of guessing.
282
+ # - Use code if needed. For calculations, parsing, or transformations, generate Python code and execute it. But be careful, some questions contains time-consuming tasks, so you should be careful with the code you run. Better analyze the question and think about the best way to solve it.
283
+ # - Use `final_answer` to give the final answer.
284
+ # - Use name of file ONLY FROM "FILE:" section. THIS IF ALWAYS A FILE.
285
+ # IMPORTANT: When giving the final answer, output only the direct required result without any extra text like "Final Answer:" or explanations. YOU MUST RESPOND IN THE EXACT FORMAT AS THE QUESTION.
286
+ # QUESTION: {question}
287
+ #
288
+ # ANSWER:
289
+ # """
290
+ # )
291
+ # FILE: {context}
292
 
293
  # Load prompt templates
294
  # with open("prompts.yaml", 'r') as stream: