File size: 875 Bytes
b84bbf4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from crewai import Agent
from llms.gpt import llm
from tools.helpers import streamlit_callback
from tools.scrape_website import scrape_tool

article_evaluator = Agent(
    role="Recommended Article Evaluator",
    goal="Verify if the articles suggested for the user align with his "
    "interests or the articles he has read in the past. The artiles should "
    "provide incremental learning to the user.",
    verbose=True,
    backstory=(
        "You are a Recommended Article Evaluator, you are strict in your evaluation. "
        "You evaluate articles based on the user's learning profile. "
        "The articles you approve spark the interests in the user and the user has "
        "incremental learning once the user completes reading the articles."
    ),
    allow_delegation=False,
    llm=llm,
    tools=[scrape_tool],
    step_callback=streamlit_callback
)