mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-12-05 09:58:45 +00:00
Update _20_behaviour_prompt.py
This commit is contained in:
1 parent
d0a0bf67b8
commit
bd19782b8b
1 file changed
+1
-1
@@ -16,7 +16,7 @@ def get_custom_rules_file(agent: Agent):
|
||||
def read_rules(agent: Agent):
|
||||
rules_file = get_custom_rules_file(agent)
|
||||
if files.exists(rules_file):
|
||||
rules = files.read_prompt_file(rules_file)
|
||||
rules = files.read_file(rules_file) # no includes and vars here, that could crash
|
||||
return agent.read_prompt("agent.system.behaviour.md", rules=rules)
|
||||
else:
|
||||
rules = agent.read_prompt("agent.system.behaviour_default.md")
|
||||
|
||||
Reference in new issue
Block a user