Spaces:
Paused
Paused
Update agents.py
Browse files
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 |
-
#
|
| 24 |
model = HfApiModel(
|
| 25 |
-
model_id="
|
| 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
|
| 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:
|