ContentAgent / tools /tools.py
yetessam's picture
Rename agents/tools.py to tools/tools.py
c1eca89 verified
raw
history blame
455 Bytes
import (
FinalAnswerTool,
PoliteGuardTool,
DuckDuckGoSearchTool,
get_the_current_time_in_timezone
)
# Initialize tools
final_answer = FinalAnswerTool()
polite_guard = PoliteGuardTool()
web_search = DuckDuckGoSearchTool()
# Import tool from Hub
#image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
# Define all tools
tools = [final_answer, polite_guard, web_search, get_the_current_time_in_timezone]