Spaces:
Running
Running
Update travel.py
Browse files
travel.py
CHANGED
|
@@ -99,7 +99,24 @@ itinerary_agent = Agent(
|
|
| 99 |
)
|
| 100 |
|
| 101 |
# -------------------------------------------------------------------------------
|
| 102 |
-
# Define
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 103 |
# -------------------------------------------------------------------------------
|
| 104 |
destination_research_task = Task(
|
| 105 |
description="""Research {destination} thoroughly, considering the traveler's interests in {preferences}.
|
|
|
|
| 99 |
)
|
| 100 |
|
| 101 |
# -------------------------------------------------------------------------------
|
| 102 |
+
# Define Chatbot Agent and Task for Interactive Conversation
|
| 103 |
+
# -------------------------------------------------------------------------------
|
| 104 |
+
chatbot_agent = Agent(
|
| 105 |
+
role="Chatbot Agent",
|
| 106 |
+
goal="Engage in interactive conversation to answer travel-related queries.",
|
| 107 |
+
backstory="A conversational AI assistant who provides instant, accurate travel information and recommendations.",
|
| 108 |
+
personality="Friendly, conversational, and knowledgeable about travel.",
|
| 109 |
+
llm=llm,
|
| 110 |
+
)
|
| 111 |
+
|
| 112 |
+
chatbot_task = Task(
|
| 113 |
+
description="Provide a conversational and detailed response to travel-related queries.",
|
| 114 |
+
agent=chatbot_agent,
|
| 115 |
+
expected_output="A friendly, helpful response to the user's query."
|
| 116 |
+
)
|
| 117 |
+
|
| 118 |
+
# -------------------------------------------------------------------------------
|
| 119 |
+
# Define Other Travel Tasks
|
| 120 |
# -------------------------------------------------------------------------------
|
| 121 |
destination_research_task = Task(
|
| 122 |
description="""Research {destination} thoroughly, considering the traveler's interests in {preferences}.
|