File size: 286 Bytes
eb0a714
d1fb17c
 
 
 
 
 
 
eb0a714
4c02b94
 
1
2
3
4
5
6
7
8
9
10
11
from smolagents import Tool, FinalAnswerTool, WebSearchTool

image_generation_tool = Tool.from_space(
    "black-forest-labs/FLUX.1-schnell",
    name="image_generator",
    description="Generate an image from a prompt"
)

search_tool = WebSearchTool()

final_answer = FinalAnswerTool()