Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing issues in the Jupyter notebook for the planner #873

Merged
merged 21 commits into from
May 10, 2023
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update 05-using-the-planner.ipynb
  • Loading branch information
kaza committed May 9, 2023
commit bc89cbcd32834cda51f64ff0c207e67da6724310
61 changes: 31 additions & 30 deletions samples/notebooks/dotnet/05-using-the-planner.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
{
"cell_type": "code",
"execution_count": 37,
"execution_count": 45,
"metadata": {
"dotnet_interactive": {
"language": "csharp"
Expand Down Expand Up @@ -69,7 +69,7 @@
},
{
"cell_type": "code",
"execution_count": 38,
"execution_count": 46,
"metadata": {
"dotnet_interactive": {
"language": "csharp"
Expand All @@ -95,7 +95,7 @@
},
{
"cell_type": "code",
"execution_count": 39,
"execution_count": 47,
"metadata": {
"dotnet_interactive": {
"language": "csharp"
Expand All @@ -121,7 +121,7 @@
},
{
"cell_type": "code",
"execution_count": 40,
"execution_count": 48,
"metadata": {
"dotnet_interactive": {
"language": "csharp"
Expand Down Expand Up @@ -178,7 +178,7 @@
},
{
"cell_type": "code",
"execution_count": 41,
"execution_count": 49,
"metadata": {
"dotnet_interactive": {
"language": "csharp"
Expand Down Expand Up @@ -207,7 +207,7 @@
},
{
"cell_type": "code",
"execution_count": 42,
"execution_count": 50,
"metadata": {
"dotnet_interactive": {
"language": "csharp"
Expand All @@ -223,19 +223,14 @@
"text": [
"Updated plan:\n",
"\n",
"Goal: Tomorrow is Valentine's day. I need to come up with a few date ideas.\n",
"She likes Shakespeare so write using his style. E-mail these ideas to my\n",
"significant other\n",
" Goal: Tomorrow is Valentine's day. I need to come up with a few date ideas.\n",
" She likes Shakespeare so write using his style. E-mail these ideas to my significant other\n",
"\n",
" Steps:\n",
" - WriterSkill.Brainstorm INPUT='Valentine's day\n",
"date ideas' => IDEAS\n",
" - ShakespeareSkill.shakespeare INPUT='$IDEAS' =>\n",
"SHAKESPEARE_IDEAS\n",
" - WriterSkill.Brainstorm INPUT='Valentine's day date ideas' => IDEAS\n",
" - ShakespeareSkill.shakespeare INPUT='$IDEAS' => SHAKESPEARE_IDEAS\n",
" - Microsoft.SemanticKernel.Planning.Plan. INPUT=''\n",
" -\n",
"Microsoft.SemanticKernel.Planning.Plan. INPUT=''\n",
"\n"
" - Microsoft.SemanticKernel.Planning.Plan. INPUT=''\n"
]
}
],
Expand All @@ -244,7 +239,7 @@
" She likes Shakespeare so write using his style. E-mail these ideas to my significant other\";\n",
dluc marked this conversation as resolved.
Show resolved Hide resolved
"var newPlan = await planner.CreatePlanAsync(ask);\n",
"Console.WriteLine(\"Updated plan:\\n\");\n",
"Console.WriteLine(Utils.WordWrap(Utils.ToPlanString(newPlan), 80));"
"Console.WriteLine(Utils.ToPlanString(newPlan));"
kaza marked this conversation as resolved.
Show resolved Hide resolved
]
},
{
Expand All @@ -259,7 +254,7 @@
},
{
"cell_type": "code",
"execution_count": 43,
"execution_count": 51,
"metadata": {
"dotnet_interactive": {
"language": "csharp"
Expand All @@ -275,7 +270,13 @@
"text": [
"Original Plan results:\n",
"\n",
"If you're looking for a romantic activity, why not consider going to a romantic dinner, making a romantic picnic, having a candlelit dinner at home, going to a movie, taking a stroll in the park, visiting a local museum, going for a romantic walk on the beach, having a game night, going for a hot air balloon ride, or attending a comedy show?\n"
"If you're looking for a romantic activity to do with your partner, why not\n",
"consider going to a romantic movie, making a romantic dinner at home, going for\n",
"a walk in a park, having a picnic in a scenic spot, taking a hot air balloon\n",
"ride, going to a local art gallery, taking a cooking class together, enjoying a\n",
"romantic sunset cruise, visiting a romantic restaurant, or having a romantic spa\n",
"day?\n",
"\n"
]
}
],
Expand All @@ -297,7 +298,7 @@
},
{
"cell_type": "code",
"execution_count": 44,
"execution_count": 52,
"metadata": {
"dotnet_interactive": {
"language": "csharp"
Expand All @@ -313,16 +314,16 @@
"text": [
"New Plan results:\n",
"\n",
"1. Prepare a banquet of love for two\n",
"2. Attend a show of music and mirth\n",
"3. View a film in the comfort of home\n",
"4. Explore a museum of local lore\n",
"5. Take a stroll of romance and glee\n",
"6. Learn the art of culinary craft\n",
"7. Dine al fresco in the park\n",
"8. Revel in a festival of the great outdoors\n",
"9. Taste the nectar of the vine\n",
"10. Wander a botanical garden of beauty.\n"
"1. Prepare a meal of love in thine own abode\n",
"2. Wander in the park, hand in hand, a-roam\n",
"3. To a fine restaurant, let us go and dine\n",
"4. In the garden, a picnic, let us design\n",
"5. To a drive-in movie, let us away\n",
"6. Together a cooking class, let us take this day\n",
"7. To a local art museum, let us go\n",
"8. A scenic drive, let us take and show\n",
"9. Horseback riding, let us go and try\n",
"10. A spa day, let us have and pry\n"
]
}
],
Expand Down