Spaces:
Runtime error
Runtime error
File size: 895 Bytes
f3f99ec 9eb0b4e 4ad7a82 f3f99ec 68e1277 f3f99ec 1a74bcb 60ce749 1a74bcb f3f99ec | 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 workflows.tools.helpers import streamlit_callback
from workflows.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
)
|