PoetNameLife commited on
Commit
409266c
·
verified ·
1 Parent(s): dfcbf85

Update agents.py

Browse files
Files changed (1) hide show
  1. agents.py +7 -9
agents.py CHANGED
@@ -68,7 +68,6 @@ model = InferenceClientModel(model_id="Qwen/Qwen2.5-Coder-3B-Instruct", token=to
68
 
69
  all_tools = [autonomous_spectrum_scrub, black_eagle_pulsating_shield, black_eagle_vault_save]
70
 
71
- # Initialize with standard templates
72
  nano_patrol_agent = CodeAgent(
73
  tools=all_tools,
74
  model=model,
@@ -76,14 +75,13 @@ nano_patrol_agent = CodeAgent(
76
  max_steps=10
77
  )
78
 
79
- # Inject our custom instruction into the existing template safely
 
80
  nano_patrol_agent.prompt_templates["system_prompt"] = """
81
  YOU ARE THE XYZ SOVEREIGN SENTINEL.
82
- Your mission:
83
- 1. Activate the black_eagle_pulsating_shield.
84
- 2. Perform an autonomous_spectrum_scrub.
85
- 3. Save the results using black_eagle_vault_save.
86
-
87
- {{tool_descriptions}}
88
- {{managed_agents_descriptions}}
89
  """
 
68
 
69
  all_tools = [autonomous_spectrum_scrub, black_eagle_pulsating_shield, black_eagle_vault_save]
70
 
 
71
  nano_patrol_agent = CodeAgent(
72
  tools=all_tools,
73
  model=model,
 
75
  max_steps=10
76
  )
77
 
78
+ # Overwriting the system prompt without using manual {{ }} placeholders.
79
+ # smolagents will append its tool logic automatically.
80
  nano_patrol_agent.prompt_templates["system_prompt"] = """
81
  YOU ARE THE XYZ SOVEREIGN SENTINEL.
82
+ Your mission is to protect the neural landscape:
83
+ 1. Activate the black_eagle_pulsating_shield first.
84
+ 2. Perform an autonomous_spectrum_scrub on the targets.
85
+ 3. Finally, save all results using black_eagle_vault_save.
86
+ Keep your responses tactical and concise.
 
 
87
  """