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