geekphoenix commited on
Commit
57c65bd
·
verified ·
1 Parent(s): b55f0eb

Update crew.py

Browse files
Files changed (1) hide show
  1. crew.py +0 -55
crew.py CHANGED
@@ -1,59 +1,4 @@
1
 
2
- # from crewai import Agent, Crew, Process, Task, LLM
3
- # from crewai.project import CrewBase, agent, crew, task
4
- # from tools.custom_tool import web_search_tool
5
- # from dotenv import load_dotenv
6
- # import os
7
-
8
- # # Load environment variables
9
- # load_dotenv()
10
-
11
- # @CrewBase
12
- # class tourismAgent():
13
- # """Tourism Agent crew for providing personalized travel recommendations"""
14
-
15
- # agents_config = 'config/agents.yaml'
16
- # tasks_config = 'config/tasks.yaml'
17
-
18
- # def __init__(self):
19
- # # Initialize LLM
20
- # self.llm = LLM(
21
- # model="claude-3-haiku-20240307",
22
- # api_key=os.getenv("ANTHROPIC_API_KEY"),
23
- # temperature=0.1, # Slightly higher for more creative responses
24
- # )
25
-
26
- # @agent
27
- # def tourism_activities_suggestor(self) -> Agent:
28
- # return Agent(
29
- # config=self.agents_config['tourism_activities_suggestor'],
30
- # verbose=True,
31
- # tools=[web_search_tool],
32
- # llm=self.llm,
33
- # max_retry_limit=3, # Reduced retry limit for faster responses
34
- # allow_delegation=False, # Prevent delegation loops
35
- # )
36
-
37
- # @task
38
- # def activities_suggestion(self) -> Task:
39
- # return Task(
40
- # config=self.tasks_config['activities_suggestion'],
41
- # agent=self.tourism_activities_suggestor(),
42
- # )
43
-
44
- # @crew
45
- # def crew(self) -> Crew:
46
- # """Creates the tourism Agent crew"""
47
- # return Crew(
48
- # agents=self.agents, # Automatically created by the @agent decorator
49
- # tasks=self.tasks, # Automatically created by the @task decorator
50
- # process=Process.sequential,
51
- # verbose=True,
52
- # max_rpm=20, # Rate limiting
53
- # )
54
-
55
-
56
-
57
  from crewai import Agent, Crew, Process, Task, LLM
58
  from crewai.project import CrewBase, agent, crew, task
59
  from tools.custom_tool import web_search_tool
 
1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  from crewai import Agent, Crew, Process, Task, LLM
3
  from crewai.project import CrewBase, agent, crew, task
4
  from tools.custom_tool import web_search_tool