PoetNameLife commited on
Commit
c90a0dd
·
verified ·
1 Parent(s): 0a89c08

Update agents.py

Browse files
Files changed (1) hide show
  1. agents.py +3 -4
agents.py CHANGED
@@ -20,20 +20,19 @@ def autonomous_spectrum_scrub(frequency_range: str) -> str:
20
  # Securely grab the token
21
  token = os.getenv("HF_TOKEN")
22
 
23
- # Removed 'provider' to fix the TypeError
24
  model = HfApiModel(
25
- model_id="mistralai/Mistral-7B-Instruct-v0.3",
26
  token=token
27
  )
28
 
29
- # Mandatory tags included for security
30
  nano_patrol_agent = ToolCallingAgent(
31
  tools=[autonomous_spectrum_scrub],
32
  model=model,
33
  max_steps=3,
34
  system_prompt="""
35
  You are the XYZ Nano Sentinel.
36
- Mission: Clean the BCI spectrum by calling autonomous_spectrum_scrub once.
37
  Provide the final_answer as a direct JSON node.
38
 
39
  You have access to these tools:
 
20
  # Securely grab the token
21
  token = os.getenv("HF_TOKEN")
22
 
23
+ # Use Llama-3.2-3B: It is FREE on Hugging Face's serverless API
24
  model = HfApiModel(
25
+ model_id="meta-llama/Llama-3.2-3B-Instruct",
26
  token=token
27
  )
28
 
 
29
  nano_patrol_agent = ToolCallingAgent(
30
  tools=[autonomous_spectrum_scrub],
31
  model=model,
32
  max_steps=3,
33
  system_prompt="""
34
  You are the XYZ Nano Sentinel.
35
+ Mission: Clean the BCI spectrum by calling autonomous_spectrum_scrub.
36
  Provide the final_answer as a direct JSON node.
37
 
38
  You have access to these tools: