-
Notifications
You must be signed in to change notification settings - Fork 38.4k
Closed
Labels
Milestone
Description
Refs #288486
- anyOS @deepak1556
- anyOS @vijayupadya
Complexity: 3
Context
Added new extension API for contributing dynamic prompt file types. This is currently a proposed API, but we would like to make it stable in the Feb release so feedback is appreciated.
Test Steps
- Consider using the following branch as a base: Add chat prompt files sample vscode-extension-samples#1259.
Custom Agents Provider
- Use
vscode.chat.registerCustomAgentProviderto dynamically contribute a custom agent. - The custom agent appears in the dropdown; selecting the agent and sending a chat message should use the instructions for that agent.
- When clicking on settings wheel at top of chat window > Custom Agents, the custom agent file should also appear and clicking it should also show an editor with the correct contents.
- Verify that calling
onDidChangeCustomAgentsrefreshes the custom agent content properly.
Instructions Provider
- Use
vscode.chat.registerInstructionsProviderto dynamically contribute instructions. Make sure you useapplyTo: '**'to always include the instructions for testing. - Make sure the instruction reference shows up when any message is sent and the instructions are affect the response.
- When clicking on settings wheel at top of chat window > Chat Instructions, the instruction file should also appear and clicking it should also show an editor with the correct contents.
- Verify that calling
onDidChangeInstructionsrefreshes the instructions content properly.
Prompt Files Provider
- Use
vscode.chat.registerPromptFilesProviderto dynamically contribute prompt files / slash commands. - Make sure the slash commands show up and can be invoked.
- When clicking on settings wheel at top of chat window > Prompt Files, the prompt file should also appear and clicking it should also show an editor with the correct contents.
- Verify that calling
onDidChangePromptFilesrefreshes the prompt files content properly.
Skills Provider
- Use
vscode.chat.registerSkillsProviderto dynamically contribute skills. - Make sure the skills show up when you ask "What skills do you know?"
- When clicking on settings wheel at top of chat window > Skills, the SKILL.md should also appear and clicking it should also show an editor with the correct contents.
- Verify that calling
onDidChangeSkillsrefreshes the skills content properly. You can ask the agent to re-read the skill file to see if it changed.
Reactions are currently unavailable