-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathagents.py
37 lines (34 loc) · 1.05 KB
/
agents.py
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
33
34
35
36
37
from crewai import Agent
from config import llm
from textwrap import dedent
# agents
class Agents:
def __init__(self):
# Initialize language model
self.llm = llm
def pdf_agent(self):
return Agent(
role="Geologist",
backstory=dedent(
f"""You work in the energy and mining sectors to exploit natural resources"""
),
goal=dedent(
f"""Uncover any information from the quatation request document provided."""
),
verbose=True,
llm=self.llm,
allow_delegation=False,
)
def writer_agent(self):
return Agent(
role="Writer",
backstory=dedent(
f"""You are good at writing reports and explaining and writing their summaries."""
),
goal=dedent(
f"""Make sure you understand the question provided by the user."""
),
verbose=True,
llm=self.llm,
allow_delegation=False,
)