File size: 576 Bytes
60b0135
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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'))