Update _20_behaviour_prompt.py
frdel committed
Aug 1, 2025 at 16:13 UTC
bd19782b8b310f773ad8daf9bd5bb6ff337f975c
1 file changed
+1
-1
python/extensions/system_prompt/_20_behaviour_prompt.py
+1
-1
@@ -16,7 +16,7 @@ def get_custom_rules_file(agent: Agent):
16
def read_rules(agent: Agent):
17
rules_file = get_custom_rules_file(agent)
18
if files.exists(rules_file):
19
- rules = files.read_prompt_file(rules_file)
19
+ rules = files.read_file(rules_file) # no includes and vars here, that could crash
20
return agent.read_prompt("agent.system.behaviour.md", rules=rules)
21
else:
22
rules = agent.read_prompt("agent.system.behaviour_default.md")