billyaungmyint's picture
Sync from GitHub via hub-sync
2277115 verified
raw
history blame contribute delete
328 Bytes
import time
from smolagents import InferenceClientModel, CodeAgent
with CodeAgent(model=InferenceClientModel("deepseek-ai/DeepSeek-V4-Flash"), tools=[], executor_type="e2b") as agent:
agent.run("Can you give me the 100th Fibonacci number?")
print("Waiting 5 seconds before shutting down sandbox...")
time.sleep(5)