Final_Assignment_Agents / smolagents_test_new.py
Gonzalo Lope
fix
03dd763
raw
history blame
391 Bytes
from huggingface_hub import login
from smolagents import CodeAgent, InferenceClientModel, DuckDuckGoSearchTool
sys_prompt = open("sys_prompt.txt", "r").read()
agent = CodeAgent(tools=[DuckDuckGoSearchTool], model=InferenceClientModel(), system_prompt=sys_prompt)
if __name__ == "__main__":
agent.run("Search for the best music recommendations for a party at the Wayne's mansion.")