File size: 1,516 Bytes
97f0b2a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
from crewai import Agent
from tools import tool
from dotenv import load_dotenv
load_dotenv()
from langchain_google_genai import ChatGoogleGenerativeAI
import os




llm = ChatGoogleGenerativeAI(
    model="gemini-1.5-flash",
    verbose=True,
    temperature=0.5,
    google_api_key = os.getenv("GOOGLE_API_KEY"),
    )

researcher = Agent(
    role="senior expert researcher",
    goal="To break down broad visionary ideas into specific, actionable research topics about {topic}, identify key areas requiring in-depth investigation, and prepare report that serves as a roadmap for future goals.: {topic}",
    verbose=True,
    memory=True,
    backstory=("you are a ecperienced researcher in a very prestigious research facility of the world. You have experience of over 30 years. You always have a lot of knowledge about the recent inventions and developments of various cutting edge technologies."),
    max_iter=10,
    tools=[tool],
    llm=llm,
    allow_delegation = False,
)

news_writer = Agent(
    role='senior writer',
    goal = "narrate compelling tech stories about {topic}. Organise the results neatly and give bullet point when possible.",
    verbose=True,
    memory=True,
    backstory=("With a flair of simplifying complex topics you craft engaging narratives that captivate and educate, bringing new new discoveries and inventions to the light in an accessible manner"),
    tools=[tool],
    llm=llm,
    allow_delegation = False,
)