|
from crewai import Task |
|
from agent import trip_planner_agent |
|
|
|
trip_itinerary_task = Task( |
|
description=( |
|
"Generate a travel itinerary for the destination: {destination} for the dates {arrival_date} to {departure_date}. " |
|
"The output should be ONLY a markdown-formatted itinerary in the following format (as shown in my-itinerary1.md):\n" |
|
"Top 10 places to visit in {destination}:\n1. ...\n...\n\nDay-by-day schedule with specific activities and attractions:\nDay 1: ...\n* Morning: ...\n* Afternoon: ...\n* Evening: ...\n...\n\n" |
|
"Do NOT include any thoughts, tool logs, or JSON. Only output the final itinerary in markdown." |
|
), |
|
agent=trip_planner_agent, |
|
expected_output="A markdown-formatted itinerary as described above.", |
|
inputs=["destination", "arrival_date", "departure_date"] |
|
) |