bstraehle commited on
Commit
146a978
·
verified ·
1 Parent(s): d24c5e2

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +3 -1
agent.py CHANGED
@@ -1,3 +1,5 @@
 
 
1
  from smolagents import (
2
  CodeAgent,
3
  OpenAIServerModel,
@@ -25,7 +27,7 @@ def run_agent(level, question, file_name, ground_truth):
25
  verbosity_level = 2
26
  )
27
 
28
- agent.prompt_templates["system_prompt"] = agent.prompt_templates["system_prompt"] + '\nWhen answering, provide ONLY the precise answer requested. Do not include explanations, steps, reasoning, or additional text. Be direct and specific. GAIA benchmark requires exact matching answers. For example, if asked "What is the capital of France?", respond simply with "Paris".'
29
 
30
  print(agent.prompt_templates["system_prompt"])
31
 
 
1
+ import os
2
+
3
  from smolagents import (
4
  CodeAgent,
5
  OpenAIServerModel,
 
27
  verbosity_level = 2
28
  )
29
 
30
+ agent.prompt_templates["system_prompt"] = os.environ["SYSTEM_PROMPT"]
31
 
32
  print(agent.prompt_templates["system_prompt"])
33