Update agent.py
Browse files
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"] =
|
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 |
|