File size: 391 Bytes
8afb52b
 
 
 
 
 
03dd763
 
 
8afb52b
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
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.")