Skip to content

Commit 0352f53

Browse files
authored
Merge pull request #8930 from microsoft/ntrogh/chatfollowup
[Chat API Guide]: update for latest ChatFollowup interface
2 parents 5a86694 + fad66fa commit 0352f53

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

api/extension-guides/ai/chat.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ Get more info about the [naming conventions for slash commands](#slash-command-n
226226

227227
### 4. Register follow-up requests
228228

229-
After each chat request, VS Code invokes follow-up providers to get suggested follow-up questions to show to the user. The user can then select the follow-up question, and immediately send it to the chat extension. Follow-up questions can provide inspiration to the user to take the conversation further, or to discover more capabilities of the chat extension.
229+
After each chat request, VS Code invokes follow-up providers to get suggested follow-up questions to show to the user. The user can then select the follow-up question, and immediately send it to the chat extension. Use the [`ChatFollowupProvider`](/api/references/vscode-api#ChatFollowupProvider) API to register follow-up prompts of type [`ChatFollowup`](/api/references/vscode-api#ChatFollowup).
230230

231231
The following code snippet shows how to register follow-up requests in a chat extension:
232232

@@ -236,7 +236,7 @@ cat.followupProvider = {
236236
if (result.metadata.command === 'teach') {
237237
return [{
238238
prompt: 'let us play',
239-
title: vscode.l10n.t('Play with the cat')
239+
label: vscode.l10n.t('Play with the cat')
240240
} satisfies vscode.ChatFollowup];
241241
}
242242
}

0 commit comments

Comments
 (0)