fromsmolagentsimportCodeAgent,DuckDuckGoSearchTool,HfApiModelagent=CodeAgent(tools=[DuckDuckGoSearchTool()],model=HfApiModel())agent.run("How many seconds would it take for a leopard at full speed to run through Pont des Arts?")
smolagent"Plan a trip to Tokyo, Kyoto and Osaka between Mar 28 and Apr 7."--model-type"HfApiModel"--model-id"Qwen/Qwen2.5-Coder-32B-Instruct"--imports"pandas numpy"--tools"web_search translation"
webagent 是一个使用 helium 的专用的网页浏览 Agent。
webagent"go to xyz.com/men, get to sale section, click the first clothing item you see. Get the product details, and the price, return them. note that I'm shopping from France"--model-type"LiteLLMModel"--model-id"gpt-4o"
requests_to_search=["gulf of mexico america","greenland denmark","tariffs"]forrequestinrequests_to_search:print(f"Here are the search results for {request}:",web_search(request))