Skip to content
Merged
Changes from all commits
Commits
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
16 changes: 8 additions & 8 deletions 03-GettingStarted/14-sampling/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ In this chapter, we will:

## What is Sampling and why use it?

Sampling is an davanced features that works in the following way:
Sampling is an advanced feature that works in the following way:

```mermaid
sequenceDiagram
Expand Down Expand Up @@ -71,13 +71,13 @@ Ok, now we have a mile high view of a credible scenario, let's talk about the sa
}
```

There's a few things here worth calling out:
There are a few things here worth calling out:

- Prompt, under content -> text, is our prompt that is an instruction for the LLM to summarize blog post content.

- **modelPreferences**. This section is just that, a preference, a recommendation of what configuration to use with the LLM. The user can choose whether to go with these recommendations or change them. In this case there are recommendations on model to use and speed and intelligence priority.
- **systemPrompt**, this is your normal system prompt that gives your LLM a personaly and contains guidance instructions.
- **maxTokens**, this is another property that's used to say how many tokens is recommended to use for this task.
- **systemPrompt**, this is your normal system prompt that gives your LLM a personality and contains guidance instructions.
- **maxTokens**, this is another property that's used to say how many tokens are recommended to use for this task.

### Sampling response

Expand Down Expand Up @@ -140,7 +140,7 @@ Sampling messages aren't constrained to just text but you can also send, images

## How to Configure Sampling in the Client

> Note: if you're only building building a server, you don't need to do much here.
> Note: if you're only building a server, you don't need to do much here.

In a client, you need to specify the following feature like so:

Expand All @@ -160,7 +160,7 @@ Let's code a sampling server together, we will need to do the following:

1. Create a tool on the Server.
1. Said tool should create a sampling request
1. Tool should wait for the clients sampling request to be answered.
1. Tool should wait for the client's sampling request to be answered.
1. Then the tool result should be produced.

Let's see the code step by step:
Expand Down Expand Up @@ -332,9 +332,9 @@ To test this out in Visual Studio Code, do the following:

In this assignment, you will build a slightly different Sampling namely a sampling integration that supports generating a product description. Here's your scenario:

**Scenario**: The back office worker at an e-commerce needs help, it takes way too much time to generate product descriptions. Therefore, you are to build a solution where you can call a tool "create_product" with "title" and "keywords" as argument and it should produce a complete product including a "description" field that should be populated by a client's LLM.
**Scenario**: The back office worker at an e-commerce needs help, it takes way too much time to generate product descriptions. Therefore, you are to build a solution where you can call a tool "create_product" with "title" and "keywords" as arguments and it should produce a complete product including a "description" field that should be populated by a client's LLM.

TIP: use what you learned earlier how to construct this server and its tool using a sampling request.
TIP: use what you learned earlier to construct this server and its tool using a sampling request.
Comment on lines +335 to +337
Copy link

Copilot AI Apr 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR description says this fixes typos in this README, but there are still obvious typos earlier in the same file (e.g., “Sampling is an davanced features…” around line 21). Either broaden the PR to include those remaining typos or adjust the PR description/scope accordingly.

Copilot uses AI. Check for mistakes.

## Solution

Expand Down