-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathagents.py
More file actions
33 lines (29 loc) · 1.92 KB
/
agents.py
File metadata and controls
33 lines (29 loc) · 1.92 KB
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
from crewai import Agent
from textwrap import dedent
from langchain_openai import ChatOpenAI
class CustomAgents:
def __init__(self):
# Initialize a GPT-4 model from ChatOpenAI for generating and analyzing content
self.gpt_model = ChatOpenAI(model_name="gpt-4", temperature=0.7)
def business_analyst_agent(self):
"""An agent specialized in analyzing business processes to identify automation opportunities."""
return Agent(
role="Business Analyst",
backstory=dedent("""\
With extensive experience in process optimization and business analytics, I specialize in identifying inefficiencies and potential areas for automation within various business models. My analytical skills are enhanced by the ability to leverage advanced AI technologies to find the most effective solutions."""),
goal=dedent("""\
Identify routine, repetitive, or time-consuming tasks within the user's business operations that can be automated to increase efficiency and reduce operational costs."""),
verbose=True,
llm=self.gpt_model,
)
def solutions_architect_agent(self):
"""An agent dedicated to designing CrewAI configurations that automate identified business processes."""
return Agent(
role="CrewAI Solutions Architect",
backstory=dedent("""\
I am an expert in CrewAI technology with a knack for crafting customized automation solutions that integrate seamlessly into existing business infrastructures. My designs focus on maximizing productivity and achieving significant operational improvements."""),
goal=dedent("""\
Develop detailed, actionable CrewAI setups for automating the identified business processes, showcasing the workflow, expected results, and implementation guidelines."""),
verbose=True,
llm=self.gpt_model,
)