TestCreateAgents / _002_app.py
zasharepw77
Сделал домашку, получилось нормально
534575c
raw
history blame contribute delete
331 Bytes
from smolagents import ToolCallingAgent, DuckDuckGoSearchTool, HfApiModel
import os
agent = ToolCallingAgent(tools=[DuckDuckGoSearchTool()], model=HfApiModel(token=os.getenv('hf_token')))
result = agent.run("Search for the best music recommendations for a party at the Wayne's mansion.")
print("\n++++\nres:\n")
print(result)