PoetNameLife commited on
Commit
2a41642
·
verified ·
1 Parent(s): 90ded76

Update agents.py

Browse files
Files changed (1) hide show
  1. agents.py +9 -5
agents.py CHANGED
@@ -64,7 +64,12 @@ def black_eagle_vault_save(node_data: str) -> str:
64
  # --- 2. THE BRAIN ---
65
 
66
  token = os.getenv("HF_TOKEN")
67
- model = InferenceClientModel(model_id="Qwen/Qwen2.5-Coder-3B-Instruct", token=token)
 
 
 
 
 
68
 
69
  all_tools = [autonomous_spectrum_scrub, black_eagle_pulsating_shield, black_eagle_vault_save]
70
 
@@ -75,13 +80,12 @@ nano_patrol_agent = CodeAgent(
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
- """
 
64
  # --- 2. THE BRAIN ---
65
 
66
  token = os.getenv("HF_TOKEN")
67
+
68
+ # Switched to Llama-3.2-3B to bypass the 'nscale' provider credit limit
69
+ model = InferenceClientModel(
70
+ model_id="meta-llama/Llama-3.2-3B-Instruct",
71
+ token=token
72
+ )
73
 
74
  all_tools = [autonomous_spectrum_scrub, black_eagle_pulsating_shield, black_eagle_vault_save]
75
 
 
80
  max_steps=10
81
  )
82
 
83
+ # Set the tactical system prompt
 
84
  nano_patrol_agent.prompt_templates["system_prompt"] = """
85
  YOU ARE THE XYZ SOVEREIGN SENTINEL.
86
  Your mission is to protect the neural landscape:
87
  1. Activate the black_eagle_pulsating_shield first.
88
  2. Perform an autonomous_spectrum_scrub on the targets.
89
  3. Finally, save all results using black_eagle_vault_save.
90
+ Keep your responses tactical and concise. Use your tools to fulfill the mission.
91
+ """