Skip to content

Commit b9632a9

Browse files
authored
changed files by pdets auto publish service, publishid[dfb0f08c-e6f4-4712-9635-cb25721cf7b3] and do [publish].
1 parent ae33ab0 commit b9632a9

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

learn-pr/wwl-azure/guided-project-create-ai-travel-agent/4-exercise-create-travel-itenerary.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
### YamlMime:ModuleUnit
22
uid: learn.wwl.guided-project-create-ai-travel-agent.exercise-create-travel-itenerary
3-
title: Exercise - Create travel itenerary
3+
title: Exercise - Create travel itinerary
44
metadata:
5-
title: Exercise - Create travel itenerary
6-
description: "Exercise - Create travel itenerary"
5+
title: Exercise - Create travel itinerary
6+
description: "Exercise - Create travel itinerary"
77
ms.date: 01/23/2025
88
author: wwlpublish
99
ms.author: buzahid

learn-pr/wwl-azure/guided-project-create-ai-travel-agent/includes/3-exercise-create-currency-converter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,4 @@ In this task, you create a native function that can convert an amount from a bas
108108
$52000 VND is approximately $2.13 in US Dollars (USD)
109109
```
110110

111-
Now you have a plugin that allows your travel agent to convernt currencies. Great work!
111+
Now you have a plugin that allows your travel agent to convert currencies. Great work!

learn-pr/wwl-azure/guided-project-create-ai-travel-agent/includes/4-exercise-create-travel-itenerary.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
In this exercise, you create a handlebars prompt function that instructs the model to get the length of the user's trip before offering an itenerary. Let's get started!
1+
In this exercise, you create a handlebars prompt function that instructs the model to get the length of the user's trip before offering an itinerary. Let's get started!
22

33
1. Navigate to the **Program.cs** file.
44

55
1. Add a handlebars prompt with the following text:
66

77
```c#
88
string hbprompt = """
9-
<message role="system">Instructions: Before providing the the user with a travel itenerary, ask how many days their trip is.</message>
10-
<message role="user">I'm going to Rome. Can you create an itenerary for me?</message>
9+
<message role="system">Instructions: Before providing the the user with a travel itinerary, ask how many days their trip is.</message>
10+
<message role="user">I'm going to Rome. Can you create an itinerary for me?</message>
1111
<message role="assistant">Sure, how many days is your trip?</message>
1212
<message role="user">{{input}}</message>
1313
""";
@@ -21,19 +21,19 @@ In this exercise, you create a handlebars prompt function that instructs the mod
2121
{
2222
Template = hbprompt,
2323
TemplateFormat = "handlebars",
24-
Name = "CreateItenerary",
24+
Name = "CreateItinerary",
2525
};
2626
```
2727

2828
1. Create a plugin function from the prompt and add it to the kernel with the following code:
2929

3030
```c#
3131
var function = kernel.CreateFunctionFromPrompt(promptTemplateConfig, templateFactory);
32-
var plugin = kernel.CreatePluginFromFunctions("TravelItenerary", [function]);
32+
var plugin = kernel.CreatePluginFromFunctions("TravelItinerary", [function]);
3333
kernel.Plugins.Add(plugin);
3434
```
3535

36-
Now the kernel will be able to call your function when the user requests an itenerary.
36+
Now the kernel will be able to call your function when the user requests an itinerary.
3737

3838
1. Update the agent's conversation flow with the following code:
3939

@@ -63,10 +63,10 @@ In this exercise, you create a handlebars prompt function that instructs the mod
6363

6464
1. Enter `dotnet run` in the terminal.
6565

66-
In the console, enter a prompt that requests an itenerary for a destination. You should see a response similar to the following:
66+
In the console, enter a prompt that requests an itinerary for a destination. You should see a response similar to the following:
6767

6868
```output
69-
User: I want to go to Japan, can you create an itenerary for me?
69+
User: I want to go to Japan, can you create an itinerary for me?
7070
Assistant: Sure! I can help you create an itinerary for your trip to Japan. How many days will you be staying in Japan?
7171
User: 10 days
7272
Assistant: Great! Here is a suggested 10-day itinerary for your trip to Japan:

0 commit comments

Comments
 (0)