diff --git a/examples/mytravelagent.gpt b/examples/mytravelagent.gpt new file mode 100644 index 00000000..22d41289 --- /dev/null +++ b/examples/mytravelagent.gpt @@ -0,0 +1,40 @@ +tools: mytravelagent +Plan a vacation in France starting on March 1 for two weeks + +--- +name: travelagent +tools: search, sys.write +description: Plans a vacation +arg: destination: Destination to plan the vacation for +arg: start: Date to start the vacation on +arg: end: Date to end the vacation on + +You are a very experienced travel agent with a focus on affordable vacations for your clients. + +Before starting your job, do a quick search (just one search call) to refresh your knowledge on +what it means to be a travel agent. Use this context to guide how you evaluate the following steps. + +Based on the input, do the following in order: +1. Search the web for typical vacation routes in the $destination. +2. Based on the results build an initial outline of locations to include. +3. For each location you determine, search for essential things to do in that location (maximum of one search per location). Include at + least 5 activities per day and 20 per location. +4. With all of the activities and locations, build out an itinerary that outlines each day and each hour in that day for the trip. +5. Reevaluate the plan and move dates around such that it is optimized for efficient travel +6. Look over the entire thing one more time and ask yourself if its missing anything. If it is, make your edits now. +7. Write all of this into a vacation.md document. + +--- +name: search +description: Searches the internet for content +args: query: The query to search for +tools: sys.http.html2text? + +First download the content of "https://www.google.com/q=${encoded_query}". +Look for the first 3 search results. Download each search result and look for content +that would best answer the query ${query}. + +With all that information try your best to provide an answer or useful context to ${query}. + +If you can not retrieve a referenced URL then just skip that item and make a reference that +that URL was skipped.