mirror of https://github.com/kortix-ai/suna.git
fix(sample_responses): update sample response files to include closing tags for function_calls in multiple sections, ensuring proper structure and formatting
This commit is contained in:
parent
ca0c66f327
commit
618a68985b
|
@ -42,6 +42,7 @@ First, I'll create a structured plan in a todo.md file to organize my approach:
|
||||||
- [ ] Final review and adjustments
|
- [ ] Final review and adjustments
|
||||||
</parameter>
|
</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
||||||
Now I'll start implementing the basic structure of our Pong game:
|
Now I'll start implementing the basic structure of our Pong game:
|
||||||
|
|
||||||
|
@ -82,6 +83,7 @@ Now I'll start implementing the basic structure of our Pong game:
|
||||||
</html>
|
</html>
|
||||||
</parameter>
|
</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
||||||
### Creating the CSS File
|
### Creating the CSS File
|
||||||
|
|
||||||
|
@ -178,6 +180,7 @@ button:disabled {
|
||||||
}
|
}
|
||||||
</parameter>
|
</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
||||||
### Creating the JavaScript File
|
### Creating the JavaScript File
|
||||||
|
|
||||||
|
@ -601,6 +604,7 @@ restartButton.addEventListener('click', () => {
|
||||||
render();
|
render();
|
||||||
</parameter>
|
</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
||||||
## Updating Todo List
|
## Updating Todo List
|
||||||
|
|
||||||
|
@ -640,6 +644,7 @@ Let me update our todo.md file to reflect our progress:
|
||||||
- [x] Final review and adjustments
|
- [x] Final review and adjustments
|
||||||
</parameter>
|
</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
||||||
## Testing the Game
|
## Testing the Game
|
||||||
|
|
||||||
|
@ -651,6 +656,7 @@ Now, let's start a local server to test our Pong game:
|
||||||
<parameter name="blocking">false</parameter>
|
<parameter name="blocking">false</parameter>
|
||||||
<parameter name="command">python -m http.server 8000</parameter>
|
<parameter name="command">python -m http.server 8000</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
||||||
Now let's expose the port so you can try the game directly:
|
Now let's expose the port so you can try the game directly:
|
||||||
|
|
||||||
|
@ -658,6 +664,7 @@ Now let's expose the port so you can try the game directly:
|
||||||
<invoke name="expose_port">
|
<invoke name="expose_port">
|
||||||
<parameter name="port">8000</parameter>
|
<parameter name="port">8000</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
||||||
## Final Check and Validation
|
## Final Check and Validation
|
||||||
|
|
||||||
|
@ -669,6 +676,7 @@ Let me perform some final checks to ensure everything is working correctly:
|
||||||
<parameter name="blocking">true</parameter>
|
<parameter name="blocking">true</parameter>
|
||||||
<parameter name="command">ls -la</parameter>
|
<parameter name="command">ls -la</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
||||||
Let's update our todo list to mark the testing as complete:
|
Let's update our todo list to mark the testing as complete:
|
||||||
|
|
||||||
|
@ -688,6 +696,7 @@ Let's update our todo list to mark the testing as complete:
|
||||||
- [x] Test on different screen sizes
|
- [x] Test on different screen sizes
|
||||||
- [x] Final review and adjustments</parameter>
|
- [x] Final review and adjustments</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
||||||
<function_calls>
|
<function_calls>
|
||||||
<invoke name="ask">
|
<invoke name="ask">
|
||||||
|
@ -714,4 +723,5 @@ Would you like me to make any adjustments or enhancements to the game? Perhaps:
|
||||||
- Adjust the AI difficulty
|
- Adjust the AI difficulty
|
||||||
- Modify the visual style
|
- Modify the visual style
|
||||||
- Add additional features</parameter>
|
- Add additional features</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
|
@ -44,6 +44,7 @@ First, I'll create a todo list to organize our work and make sure we cover all a
|
||||||
- [ ] Proofread and finalize all documents
|
- [ ] Proofread and finalize all documents
|
||||||
</parameter>
|
</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
||||||
Now I'll start researching flight options and the best regions to visit based on your interests. Let's begin by searching for flight information and gathering essential data about traveling to Japan from Seattle.
|
Now I'll start researching flight options and the best regions to visit based on your interests. Let's begin by searching for flight information and gathering essential data about traveling to Japan from Seattle.
|
||||||
|
|
||||||
|
@ -52,6 +53,7 @@ Now I'll start researching flight options and the best regions to visit based on
|
||||||
<parameter name="query">flights from Seattle to Japan April 2025 costs</parameter>
|
<parameter name="query">flights from Seattle to Japan April 2025 costs</parameter>
|
||||||
<parameter name="num_results">20</parameter>
|
<parameter name="num_results">20</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
||||||
Let me also search for information about the best places to visit in Japan, especially focusing on historical sites and cultural experiences:
|
Let me also search for information about the best places to visit in Japan, especially focusing on historical sites and cultural experiences:
|
||||||
|
|
||||||
|
@ -60,6 +62,7 @@ Let me also search for information about the best places to visit in Japan, espe
|
||||||
<parameter name="query">best historical sites in Japan for first-time visitors</parameter>
|
<parameter name="query">best historical sites in Japan for first-time visitors</parameter>
|
||||||
<parameter name="num_results">20</parameter>
|
<parameter name="num_results">20</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
||||||
Now let's look for information about Nara deer park and other cultural experiences you mentioned:
|
Now let's look for information about Nara deer park and other cultural experiences you mentioned:
|
||||||
|
|
||||||
|
@ -68,24 +71,28 @@ Now let's look for information about Nara deer park and other cultural experienc
|
||||||
<parameter name="query">Nara deer park Japan visiting guide</parameter>
|
<parameter name="query">Nara deer park Japan visiting guide</parameter>
|
||||||
<parameter name="num_results">20</parameter>
|
<parameter name="num_results">20</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
||||||
<function_calls>
|
<function_calls>
|
||||||
<invoke name="web_search">
|
<invoke name="web_search">
|
||||||
<parameter name="query">authentic tea ceremony experience Japan for tourists</parameter>
|
<parameter name="query">authentic tea ceremony experience Japan for tourists</parameter>
|
||||||
<parameter name="num_results">20</parameter>
|
<parameter name="num_results">20</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
||||||
<function_calls>
|
<function_calls>
|
||||||
<invoke name="web_search">
|
<invoke name="web_search">
|
||||||
<parameter name="query">zen meditation experiences for tourists in Japan</parameter>
|
<parameter name="query">zen meditation experiences for tourists in Japan</parameter>
|
||||||
<parameter name="num_results">20</parameter>
|
<parameter name="num_results">20</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
||||||
<function_calls>
|
<function_calls>
|
||||||
<invoke name="web_search">
|
<invoke name="web_search">
|
||||||
<parameter name="query">kendo observation or experience for tourists in Japan</parameter>
|
<parameter name="query">kendo observation or experience for tourists in Japan</parameter>
|
||||||
<parameter name="num_results">20</parameter>
|
<parameter name="num_results">20</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
||||||
Let's also research hidden gems and romantic spots in Japan for your proposal:
|
Let's also research hidden gems and romantic spots in Japan for your proposal:
|
||||||
|
|
||||||
|
@ -94,12 +101,14 @@ Let's also research hidden gems and romantic spots in Japan for your proposal:
|
||||||
<parameter name="query">romantic proposal locations in Japan scenic views</parameter>
|
<parameter name="query">romantic proposal locations in Japan scenic views</parameter>
|
||||||
<parameter name="num_results">20</parameter>
|
<parameter name="num_results">20</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
||||||
<function_calls>
|
<function_calls>
|
||||||
<invoke name="web_search">
|
<invoke name="web_search">
|
||||||
<parameter name="query">hidden gems in Japan off the beaten path</parameter>
|
<parameter name="query">hidden gems in Japan off the beaten path</parameter>
|
||||||
<parameter name="num_results">20</parameter>
|
<parameter name="num_results">20</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
||||||
Now let's look at transportation options within Japan:
|
Now let's look at transportation options within Japan:
|
||||||
|
|
||||||
|
@ -108,6 +117,7 @@ Now let's look at transportation options within Japan:
|
||||||
<parameter name="query">Japan Rail Pass cost and coverage 2025</parameter>
|
<parameter name="query">Japan Rail Pass cost and coverage 2025</parameter>
|
||||||
<parameter name="num_results">20</parameter>
|
<parameter name="num_results">20</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
||||||
Based on the searches, I'm going to compile information to create your itinerary. First, let me mark some research tasks as complete and update our todo list:
|
Based on the searches, I'm going to compile information to create your itinerary. First, let me mark some research tasks as complete and update our todo list:
|
||||||
|
|
||||||
|
@ -127,6 +137,7 @@ Based on the searches, I'm going to compile information to create your itinerary
|
||||||
- [ ] Research accommodation options within budget
|
- [ ] Research accommodation options within budget
|
||||||
- [x] Research proposal location options</parameter>
|
- [x] Research proposal location options</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
||||||
## Creating Your Itinerary
|
## Creating Your Itinerary
|
||||||
|
|
||||||
|
@ -137,6 +148,7 @@ Now I'll start crafting your detailed 7-day itinerary based on the research. Fir
|
||||||
<parameter name="query">budget to mid-range accommodations in Tokyo Kyoto 2025</parameter>
|
<parameter name="query">budget to mid-range accommodations in Tokyo Kyoto 2025</parameter>
|
||||||
<parameter name="num_results">20</parameter>
|
<parameter name="num_results">20</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
||||||
Based on all the research, I'm now going to create a detailed itinerary file:
|
Based on all the research, I'm now going to create a detailed itinerary file:
|
||||||
|
|
||||||
|
@ -595,6 +607,7 @@ tr:nth-child(even) {
|
||||||
}
|
}
|
||||||
</parameter>
|
</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
||||||
Now, let's create the HTML structure for the travel handbook:
|
Now, let's create the HTML structure for the travel handbook:
|
||||||
|
|
||||||
|
@ -945,6 +958,7 @@ Now, let's create the HTML structure for the travel handbook:
|
||||||
</html>
|
</html>
|
||||||
</parameter>
|
</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
||||||
Let me now create a directory for the travel handbook and make sure all the files are properly organized:
|
Let me now create a directory for the travel handbook and make sure all the files are properly organized:
|
||||||
|
|
||||||
|
@ -953,6 +967,7 @@ Let me now create a directory for the travel handbook and make sure all the file
|
||||||
<parameter name="command">mkdir -p travel_handbook</parameter>
|
<parameter name="command">mkdir -p travel_handbook</parameter>
|
||||||
<parameter name="blocking">true</parameter>
|
<parameter name="blocking">true</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
||||||
Now let's check that our files are in place and update our todo list:
|
Now let's check that our files are in place and update our todo list:
|
||||||
|
|
||||||
|
@ -961,6 +976,7 @@ Now let's check that our files are in place and update our todo list:
|
||||||
<parameter name="command">ls -la travel_handbook/</parameter>
|
<parameter name="command">ls -la travel_handbook/</parameter>
|
||||||
<parameter name="blocking">true</parameter>
|
<parameter name="blocking">true</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
||||||
<function_calls>
|
<function_calls>
|
||||||
<invoke name="full_file_rewrite">
|
<invoke name="full_file_rewrite">
|
||||||
|
@ -1001,6 +1017,7 @@ Now let's check that our files are in place and update our todo list:
|
||||||
- [ ] Proofread and finalize all documents
|
- [ ] Proofread and finalize all documents
|
||||||
</parameter>
|
</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
||||||
Now let's generate a preview of the HTML travel handbook:
|
Now let's generate a preview of the HTML travel handbook:
|
||||||
|
|
||||||
|
@ -1009,6 +1026,7 @@ Now let's generate a preview of the HTML travel handbook:
|
||||||
<parameter name="command">cd travel_handbook && python -m http.server 3000</parameter>
|
<parameter name="command">cd travel_handbook && python -m http.server 3000</parameter>
|
||||||
<parameter name="blocking">false</parameter>
|
<parameter name="blocking">false</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
||||||
Let's expose the port so you can access the travel handbook:
|
Let's expose the port so you can access the travel handbook:
|
||||||
|
|
||||||
|
@ -1016,6 +1034,7 @@ Let's expose the port so you can access the travel handbook:
|
||||||
<invoke name="expose_port">
|
<invoke name="expose_port">
|
||||||
<parameter name="port">3000</parameter>
|
<parameter name="port">3000</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
||||||
Let's combine all our work into a comprehensive package for you to download. First, let's create a zip file with everything:
|
Let's combine all our work into a comprehensive package for you to download. First, let's create a zip file with everything:
|
||||||
|
|
||||||
|
@ -1024,6 +1043,7 @@ Let's combine all our work into a comprehensive package for you to download. Fir
|
||||||
<parameter name="command">zip -r japan_trip_package.zip Japan_Itinerary.md travel_handbook/</parameter>
|
<parameter name="command">zip -r japan_trip_package.zip Japan_Itinerary.md travel_handbook/</parameter>
|
||||||
<parameter name="blocking">true</parameter>
|
<parameter name="blocking">true</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
||||||
<function_calls>
|
<function_calls>
|
||||||
<invoke name="ask">
|
<invoke name="ask">
|
||||||
|
@ -1051,3 +1071,4 @@ You can preview the HTML travel handbook through the link provided by the expose
|
||||||
|
|
||||||
Is there anything specific you'd like me to adjust or explain in more detail about the itinerary or travel handbook?</parameter>
|
Is there anything specific you'd like me to adjust or explain in more detail about the itinerary or travel handbook?</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
|
@ -22,6 +22,7 @@ I'll create a simple weather dashboard that shows current conditions and forecas
|
||||||
- [ ] Final review
|
- [ ] Final review
|
||||||
</parameter>
|
</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
||||||
I'll start by creating the HTML structure for our weather dashboard:
|
I'll start by creating the HTML structure for our weather dashboard:
|
||||||
|
|
||||||
|
@ -77,6 +78,7 @@ I'll start by creating the HTML structure for our weather dashboard:
|
||||||
</html>
|
</html>
|
||||||
</parameter>
|
</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
||||||
Now let's add the CSS styling:
|
Now let's add the CSS styling:
|
||||||
|
|
||||||
|
@ -205,6 +207,7 @@ section {
|
||||||
}
|
}
|
||||||
</parameter>
|
</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
||||||
<function_calls>
|
<function_calls>
|
||||||
<invoke name="full_file_rewrite">
|
<invoke name="full_file_rewrite">
|
||||||
|
@ -227,6 +230,7 @@ section {
|
||||||
- [ ] Final review
|
- [ ] Final review
|
||||||
</parameter>
|
</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
||||||
Now let's implement the JavaScript functionality:
|
Now let's implement the JavaScript functionality:
|
||||||
|
|
||||||
|
@ -349,6 +353,7 @@ function displayForecast(data) {
|
||||||
console.log('Weather Dashboard is ready to use!');
|
console.log('Weather Dashboard is ready to use!');
|
||||||
</parameter>
|
</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
||||||
<function_calls>
|
<function_calls>
|
||||||
<invoke name="full_file_rewrite">
|
<invoke name="full_file_rewrite">
|
||||||
|
@ -371,6 +376,7 @@ console.log('Weather Dashboard is ready to use!');
|
||||||
- [ ] Final review
|
- [ ] Final review
|
||||||
</parameter>
|
</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
||||||
Let's start a server to preview our weather dashboard:
|
Let's start a server to preview our weather dashboard:
|
||||||
|
|
||||||
|
@ -379,11 +385,13 @@ Let's start a server to preview our weather dashboard:
|
||||||
<parameter name="command">python -m http.server 3000</parameter>
|
<parameter name="command">python -m http.server 3000</parameter>
|
||||||
<parameter name="blocking">false</parameter>
|
<parameter name="blocking">false</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
||||||
<function_calls>
|
<function_calls>
|
||||||
<invoke name="expose_port">
|
<invoke name="expose_port">
|
||||||
<parameter name="port">3000</parameter>
|
<parameter name="port">3000</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
||||||
I've tested the API integration and responsiveness and everything works correctly.
|
I've tested the API integration and responsiveness and everything works correctly.
|
||||||
|
|
||||||
|
@ -408,12 +416,14 @@ I've tested the API integration and responsiveness and everything works correctl
|
||||||
- [x] Final review
|
- [x] Final review
|
||||||
</parameter>
|
</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
||||||
<function_calls>
|
<function_calls>
|
||||||
<invoke name="web_search">
|
<invoke name="web_search">
|
||||||
<parameter name="query">free weather api for websites</parameter>
|
<parameter name="query">free weather api for websites</parameter>
|
||||||
<parameter name="num_results">3</parameter>
|
<parameter name="num_results">3</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
||||||
Based on my research, I recommend replacing the API_KEY placeholder with a real free API key from OpenWeatherMap or using a different free weather API service.
|
Based on my research, I recommend replacing the API_KEY placeholder with a real free API key from OpenWeatherMap or using a different free weather API service.
|
||||||
|
|
||||||
|
@ -434,3 +444,4 @@ You can view it through the exposed port link above. The app currently uses a pl
|
||||||
|
|
||||||
Would you like me to make any adjustments to the design or functionality?</parameter>
|
Would you like me to make any adjustments to the design or functionality?</parameter>
|
||||||
</invoke>
|
</invoke>
|
||||||
|
</function_calls>
|
||||||
|
|
Loading…
Reference in New Issue