Ramja's picture
Update tools.py
28fe0b5 verified
raw
history blame
333 Bytes
from smolagents import DuckDuckGoSearchTool, Tool, VisitWebpageTool
from langchain_community.agent_toolkits.load_tools import load_tools
import os
# Initialize the search tools
duck_search_tool = DuckDuckGoSearchTool()
visit_web_page_tool = VisitWebpageTool()
google_search_tool = Tool.from_langchain(load_tools(["serpapi"])[0])