File size: 1,730 Bytes
08a9a1d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
38
39
40
41
42
43
44
45
46
47
48
49
50
from crewai import Agent
from langchain.llms import OpenAI

from tools.browser_tools import BrowserTools
from tools.calculator_tools import CalculatorTools
from tools.search_tools import SearchTools


class TripAgents():

  def city_selection_agent(self):
    return Agent(
        role='City Selection Expert',
        goal='Select the best city based on weather, season, and prices',
        backstory=
        'An expert in analyzing travel data to pick ideal destinations',
        # tools=[
        #     SearchTools.search_internet,
        #     BrowserTools.scrape_and_summarize_website,
        # ],
        verbose=True,
        allow_delegation=False)

  def local_expert(self):
    return Agent(
        role='Local Expert at this city',
        goal='Provide the BEST insights about the selected city',
        backstory="""A knowledgeable local guide with extensive information

        about the city, it's attractions and customs""",
        # tools=[
        #     SearchTools.search_internet,
        #     BrowserTools.scrape_and_summarize_website,
        # ],
        verbose=True,
        allow_delegation=False)

  def travel_concierge(self):
    return Agent(
        role='Amazing Travel Concierge',
        goal="""Create the most amazing travel itineraries with budget and 

        packing suggestions for the city""",
        backstory="""Specialist in travel planning and logistics with 

        decades of experience""",
        # tools=[
        #     # SearchTools.search_internet,
        #     # BrowserTools.scrape_and_summarize_website,
        #     # CalculatorTools.calculate,
        # ],
        verbose=True,
        allow_delegation=False)