Spaces:
Runtime error
Runtime error
File size: 425 Bytes
cfe45ea 8fe992b cfe45ea 9b5b26a cfe45ea 9b5b26a 8c01ffb 8fe992b cfe45ea 8fe992b cfe45ea | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | from smolagents import CodeAgent, DuckDuckGoSearchTool, InferenceClientModel
# Initialize the search tool
search_tool = DuckDuckGoSearchTool()
# Initialize the model
model = InferenceClientModel()
agent = CodeAgent(
model=model,
tools=[search_tool],
)
# Example usage
response = agent.run(
"Search for luxury superhero-themed party ideas, including decorations, entertainment, and catering."
)
print(response) |