geekphoenix commited on
Commit
bf5695d
·
verified ·
1 Parent(s): 9c60c5f

Update crew.py

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