geekphoenix commited on
Commit
542a359
·
verified ·
1 Parent(s): 22b79f1

Update crew.py

Browse files
Files changed (1) hide show
  1. crew.py +0 -59
crew.py CHANGED
@@ -1,62 +1,3 @@
1
- # from crewai import Agent, Crew, Process, Task, LLM
2
- # from crewai.project import CrewBase, agent, crew, task
3
- # from tools.custom_tool import landing_ai_document_analysis
4
- # from dotenv import load_dotenv
5
- # import os
6
- # # from langchain_groq import ChatGroq
7
- # # Load environment variables
8
- # load_dotenv()
9
-
10
- # @CrewBase
11
- # class DocProcessing():
12
- # """DocProcessing crew"""
13
-
14
- # agents_config = 'config/agents.yaml'
15
- # tasks_config = 'config/tasks.yaml'
16
-
17
- # llm = LLM(
18
- # model = "claude-3-haiku-20240307",
19
- # api_key = os.getenv("ANTHROPIC_API_KEY"),
20
- # temperature = 0,
21
- # )
22
-
23
- # # llm = ChatGroq(
24
- # # model = "groq/llama-3.1-8b-instant",
25
- # # api_key= os.getenv("GROQ_API_KEY"),
26
- # # )
27
-
28
-
29
-
30
-
31
- # @agent
32
- # def document_analyst(self) -> Agent:
33
- # return Agent(
34
- # config=self.agents_config['document_analyst'],
35
- # verbose=True,
36
- # tools=[landing_ai_document_analysis],
37
- # llm=self.llm,
38
- # )
39
-
40
-
41
- # @task
42
- # def document_analysis(self) -> Task:
43
- # return Task(
44
- # config=self.tasks_config['document_analysis'],
45
- # )
46
-
47
-
48
-
49
- # @crew
50
- # def crew(self) -> Crew:
51
- # """Creates the DocProcessing crew"""
52
-
53
-
54
- # return Crew(
55
- # agents=self.agents, # Automatically created by the @agent decorator
56
- # tasks=self.tasks, # Automatically created by the @task decorator
57
- # process=Process.sequential,
58
- # verbose=True,
59
- # )
60
  from crewai import Agent, Crew, Process, Task, LLM
61
  from crewai.project import CrewBase, agent, crew, task
62
  from tools.custom_tool import landing_ai_document_analysis
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  from crewai import Agent, Crew, Process, Task, LLM
2
  from crewai.project import CrewBase, agent, crew, task
3
  from tools.custom_tool import landing_ai_document_analysis