ai_workflows / agents /learning_curator.py
Quizra
add code to spin streamlit ui
1a74bcb
raw
history blame
698 Bytes
from crewai import Agent
from llms.gpt import llm
from tools.helpers import streamlit_callback
from tools.scrape_website import scrape_tool
from tools.search_web import search_tool
learning_curator = Agent(
role="Personal Learning Curator",
goal="Make sure you present 5 articles on the topics that the user is interested in, "
"the article should provide the user with an incremental learning.",
verbose=True,
backstory=(
"As an Learning Strategist, the articles you suggest motivate and "
"provide incremental learning for the user."
),
allow_delegation=False,
tools=[scrape_tool, search_tool],
llm=llm,
step_callback=streamlit_callback
)