Spaces:
Running
Running
| 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) |