precaution / tools.py
jindalgoldy's picture
Upload 7 files
9f7e1a9 verified
raw
history blame contribute delete
341 Bytes
from dotenv import load_dotenv
from crewai_tools import SerperDevTool
import os
# Load environment variables from .env file
load_dotenv()
# Set the API key for Serper (Google Search Tool)
os.environ["SERPER_API_KEY"] = os.environ.get("SERPER_API_KEY")
# Initialize the SerperDevTool for Google searches
tool = SerperDevTool()