Chandranshu Jain
Update app.py
60b0135 verified
raw
history blame
576 Bytes
from langchain.tools import DuckDuckGoSearchRun
from crewai_tools import tool
@tool('DuckDuckGoSearch')
def search(search_query:str):
"""Search the web for the topic"""
return DuckDuckGoSearchRun().run(search_query)
import os
from crewai import Agent,Task,Crew,Process
import google.generativeai as genai
from langchain_google_genai import ChatGoogleGenerativeAI
llm=ChatGoogleGenerativeAI(model="gemini-pro",
verbose = True,
temperature = 0.2,
google_api_key=userdata.get('GOOGLE_API_KEY'))