billyaungmyint's picture
Sync from GitHub via hub-sync
2277115 verified
raw
history blame contribute delete
340 Bytes
from smolagents import CodeAgent, InferenceClientModel, DuckDuckGoSearchTool
model = InferenceClientModel("deepseek-ai/DeepSeek-V4-Flash")
agent = CodeAgent(
# tools=[DuckDuckGoSearchTool()],
tools=[],
model=model,
)
# Now the agent can search the web!
result = agent.run("What is the current weather in Paris?")
print(result)