setup / agents /article_evaluator.py
AnanthulaShravya's picture
Rename article_evaluator.py to agents/article_evaluator.py
ead92ea verified
raw
history blame contribute delete
875 Bytes
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
)